	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixpdev_open
_ixpdev_open:                           ## @ixpdev_open
	.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	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	leaq	4(%rax), %r15
	movq	%r15, %rdi
	callq	_napi_enable
	movq	_nds_open@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r13)
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_set_port_admin_status
	movq	%r14, %rdi
	callq	_netif_start_queue
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_IRQ_IXP2000_THDA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ixpdev_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_nds@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rcx
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	decl	(%r13)
	movq	%r15, %rdi
	callq	_napi_disable
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_IXP2000_IRQ_THD_ENABLE_SET_A_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_ixp2000_reg_write
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_nds_open,4,2                   ## @nds_open
	.comm	_IRQ_IXP2000_THDA0,4,2          ## @IRQ_IXP2000_THDA0
	.comm	_ixpdev_interrupt,4,2           ## @ixpdev_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ixp2000_eth"

	.comm	_nds,4,2                        ## @nds
	.comm	_IXP2000_IRQ_THD_ENABLE_SET_A_0,4,2 ## @IXP2000_IRQ_THD_ENABLE_SET_A_0
	.no_dead_strip	_ixpdev_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixpdev_open
_ixpdev_open:                           ; @ixpdev_open
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_napi_enable
Lloh0:
	adrp	x23, _nds_open@GOTPAGE
Lloh1:
	ldr	x23, [x23, _nds_open@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w9, w8, #1
	str	w9, [x23]
	cbz	w8, LBB0_2
LBB0_1:
	ldr	w0, [x20]
	mov	w1, #1
	bl	_set_port_admin_status
	mov	x0, x19
	bl	_netif_start_queue
	mov	w22, #0
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _IRQ_IXP2000_THDA0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_IXP2000_THDA0@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ixpdev_interrupt@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ixpdev_interrupt@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _nds@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nds@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x3, l_.str@PAGE
Lloh15:
	add	x3, x3, l_.str@PAGEOFF
	bl	_request_irq
	cbz	w0, LBB0_5
; %bb.3:
	mov	x22, x0
	ldr	w8, [x23]
	sub	w8, w8, #1
	str	w8, [x23]
	mov	x0, x21
	bl	_napi_disable
LBB0_4:
	mov	x0, x22
	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
LBB0_5:
Lloh16:
	adrp	x8, _IXP2000_IRQ_THD_ENABLE_SET_A_0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IXP2000_IRQ_THD_ENABLE_SET_A_0@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #65535
	bl	_ixp2000_reg_write
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_nds_open,4,2                   ; @nds_open
	.comm	_IRQ_IXP2000_THDA0,4,2          ; @IRQ_IXP2000_THDA0
	.comm	_ixpdev_interrupt,4,2           ; @ixpdev_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ixp2000_eth"

	.comm	_nds,4,2                        ; @nds
	.comm	_IXP2000_IRQ_THD_ENABLE_SET_A_0,4,2 ; @IXP2000_IRQ_THD_ENABLE_SET_A_0
	.no_dead_strip	_ixpdev_open
.subsections_via_symbols
