	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipxitf_delete
_ipxitf_delete:                         ## @ipxitf_delete
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ipx_interfaces_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	(%rbx), %rax
	movq	_IPX_INTERNAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_ipx_internal_net@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	callq	___ipxitf_put
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_3:
	movl	12(%rbx), %edi
	callq	_ipx_map_frame_type
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r15
	movl	8(%rbx), %esi
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	___dev_get_by_name
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	___ipxitf_find_using_phys
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rdi
	callq	___ipxitf_put
	jmp	LBB0_12
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_8:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %r14d
LBB0_12:
	movq	_ipx_interfaces_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipx_interfaces_lock,4,2        ## @ipx_interfaces_lock
	.comm	_IPX_INTERNAL,8,3               ## @IPX_INTERNAL
	.comm	_ipx_internal_net,8,3           ## @ipx_internal_net
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_init_net,4,2                   ## @init_net
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ipxitf_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipxitf_delete
_ipxitf_delete:                         ; @ipxitf_delete
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _ipx_interfaces_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ipx_interfaces_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _IPX_INTERNAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IPX_INTERNAL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _ipx_internal_net@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ipx_internal_net@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	cbnz	x0, LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
	ldr	w0, [x19, #12]
	bl	_ipx_map_frame_type
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	ldr	w1, [x19, #8]
Lloh10:
	adrp	x0, _init_net@GOTPAGE
Lloh11:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	___dev_get_by_name
	cbz	x0, LBB0_8
; %bb.5:
	mov	x1, x20
	bl	___ipxitf_find_using_phys
	cbz	x0, LBB0_9
LBB0_6:
	bl	___ipxitf_put
	mov	w19, #0
	b	LBB0_11
LBB0_7:
Lloh12:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_11:
Lloh18:
	adrp	x0, _ipx_interfaces_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _ipx_interfaces_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ipx_interfaces_lock,4,2        ; @ipx_interfaces_lock
	.comm	_IPX_INTERNAL,8,3               ; @IPX_INTERNAL
	.comm	_ipx_internal_net,8,3           ; @ipx_internal_net
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_init_net,4,2                   ; @init_net
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ipxitf_delete
.subsections_via_symbols
