	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pppox_create
_pppox_create:                          ## @pppox_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EPROTOTYPE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%edx, %edx
	js	LBB0_6
## %bb.1:
	movq	_PX_MAX_PROTO@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jl	LBB0_6
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_pppox_protos@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	%edx, %r13d
	movq	(%rax,%r13,8), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	callq	_request_module
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	movl	8(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	8(%rax), %edi
	callq	_module_put
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROTOTYPE,4,2                 ## @EPROTOTYPE
	.comm	_PX_MAX_PROTO,4,2               ## @PX_MAX_PROTO
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_pppox_protos,8,3               ## @pppox_protos
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pppox-proto-%d"

	.no_dead_strip	_pppox_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pppox_create
_pppox_create:                          ; @pppox_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _EPROTOTYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROTOTYPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	tbnz	w2, #31, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _PX_MAX_PROTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PX_MAX_PROTO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w2
	b.lt	LBB0_6
; %bb.2:
	mov	x19, x1
	mov	x20, x0
Lloh6:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
Lloh9:
	adrp	x22, _pppox_protos@GOTPAGE
Lloh10:
	ldr	x22, [x22, _pppox_protos@GOTPAGEOFF]
	ldr	x8, [x22]
	mov	w23, w2
	ldr	x8, [x8, w2, uxtw #3]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_request_module
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
	cbz	x8, LBB0_6
LBB0_4:
	ldr	w0, [x8, #8]
	bl	_try_module_get
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x22]
	lsl	x21, x23, #3
	ldr	x8, [x8, x21]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x19, x0
	ldr	x8, [x22]
	ldr	x8, [x8, x21]
	ldr	w0, [x8, #8]
	bl	_module_put
	mov	x0, x19
	b	LBB0_7
LBB0_6:
	mov	x0, x21
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROTOTYPE,4,2                 ; @EPROTOTYPE
	.comm	_PX_MAX_PROTO,4,2               ; @PX_MAX_PROTO
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_pppox_protos,8,3               ; @pppox_protos
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pppox-proto-%d"

	.no_dead_strip	_pppox_create
.subsections_via_symbols
