	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppp_nl_newlink
_ppp_nl_newlink:                        ## @ppp_nl_newlink
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movups	L___const.ppp_nl_newlink.conf(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_IFLA_PPP_DEV_FD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rdi
	callq	_nla_get_s32
	movl	%eax, %edi
	callq	_fget
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_ppp_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_trylock
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%r13), %rax
	cmpq	_ppp_device_fops@GOTPCREL(%rip), %rax
	jne	LBB0_6
## %bb.5:
	cmpq	$0, (%r13)
	je	LBB0_7
LBB0_6:
	movq	_EBADF@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	_ppp_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	jmp	LBB0_11
LBB0_1:
	movq	_EBADF@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	%r13, %rdi
	callq	_fput
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, -56(%rbp)
	movq	_IFLA_IFNAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r12,%rax,8)
	jne	LBB0_9
## %bb.8:
	movl	$0, -60(%rbp)
LBB0_9:
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ppp_dev_configure
	movl	%eax, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3                               ## @__const.ppp_nl_newlink.conf
L___const.ppp_nl_newlink.conf:
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
	.quad	0

	.comm	_IFLA_PPP_DEV_FD,8,3            ## @IFLA_PPP_DEV_FD
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_ppp_mutex,4,2                  ## @ppp_mutex
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ppp_device_fops,4,2            ## @ppp_device_fops
	.comm	_IFLA_IFNAME,8,3                ## @IFLA_IFNAME
	.no_dead_strip	_ppp_nl_newlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppp_nl_newlink
_ppp_nl_newlink:                        ; @ppp_nl_newlink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, l___const.ppp_nl_newlink.conf@PAGE
Lloh1:
	add	x8, x8, l___const.ppp_nl_newlink.conf@PAGEOFF
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp]
Lloh3:
	adrp	x8, _IFLA_PPP_DEV_FD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFLA_PPP_DEV_FD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x0, [x3, x8, lsl #3]
	bl	_nla_get_s32
	bl	_fget
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x0, _ppp_mutex@GOTPAGE
Lloh7:
	ldr	x0, [x0, _ppp_mutex@GOTPAGEOFF]
	bl	_mutex_trylock
	cbz	w0, LBB0_7
; %bb.2:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _ppp_device_fops@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ppp_device_fops@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
LBB0_4:
Lloh10:
	adrp	x8, _EBADF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
Lloh13:
	adrp	x0, _ppp_mutex@GOTPAGE
Lloh14:
	ldr	x0, [x0, _ppp_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x8, _EBADF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_7:
Lloh18:
	adrp	x8, _EBUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x19
	bl	_fput
LBB0_9:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_10:
	str	x19, [sp, #8]
Lloh21:
	adrp	x8, _IFLA_IFNAME@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IFLA_IFNAME@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x8, [x22, x8, lsl #3]
	cbnz	x8, LBB0_12
; %bb.11:
	str	wzr, [sp, #4]
LBB0_12:
	mov	x2, sp
	mov	x0, x21
	mov	x1, x20
	bl	_ppp_dev_configure
	mov	x20, x0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAddLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3                               ; @__const.ppp_nl_newlink.conf
l___const.ppp_nl_newlink.conf:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.quad	0

	.comm	_IFLA_PPP_DEV_FD,8,3            ; @IFLA_PPP_DEV_FD
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_ppp_mutex,4,2                  ; @ppp_mutex
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ppp_device_fops,4,2            ; @ppp_device_fops
	.comm	_IFLA_IFNAME,8,3                ; @IFLA_IFNAME
	.no_dead_strip	_ppp_nl_newlink
.subsections_via_symbols
