	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixpdev_close
_ixpdev_close:                          ## @ixpdev_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	leaq	4(%r14), %rdi
	callq	_napi_disable
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_set_port_admin_status
	movq	_nds_open@GOTPCREL(%rip), %rax
	decl	(%rax)
	jne	LBB0_2
## %bb.1:
	movq	_IXP2000_IRQ_THD_ENABLE_CLEAR_A_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_ixp2000_reg_write
	movq	_IRQ_IXP2000_THDA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_nds@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free_irq
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nds_open,4,2                   ## @nds_open
	.comm	_IXP2000_IRQ_THD_ENABLE_CLEAR_A_0,4,2 ## @IXP2000_IRQ_THD_ENABLE_CLEAR_A_0
	.comm	_IRQ_IXP2000_THDA0,4,2          ## @IRQ_IXP2000_THDA0
	.comm	_nds,4,2                        ## @nds
	.no_dead_strip	_ixpdev_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixpdev_close
_ixpdev_close:                          ; @ixpdev_close
	.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
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_netif_stop_queue
	add	x0, x20, #4
	bl	_napi_disable
	ldr	w0, [x20]
	mov	w1, #0
	bl	_set_port_admin_status
Lloh0:
	adrp	x8, _nds_open@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nds_open@GOTPAGEOFF]
	ldr	w9, [x8]
	subs	w9, w9, #1
	str	w9, [x8]
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _IXP2000_IRQ_THD_ENABLE_CLEAR_A_0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXP2000_IRQ_THD_ENABLE_CLEAR_A_0@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #65535
	bl	_ixp2000_reg_write
Lloh5:
	adrp	x8, _IRQ_IXP2000_THDA0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_IXP2000_THDA0@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _nds@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nds@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_free_irq
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_nds_open,4,2                   ; @nds_open
	.comm	_IXP2000_IRQ_THD_ENABLE_CLEAR_A_0,4,2 ; @IXP2000_IRQ_THD_ENABLE_CLEAR_A_0
	.comm	_IRQ_IXP2000_THDA0,4,2          ; @IRQ_IXP2000_THDA0
	.comm	_nds,4,2                        ; @nds
	.no_dead_strip	_ixpdev_close
.subsections_via_symbols
