	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9000_open
_dm9000_open:                           ## @dm9000_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	24(%rax), %rax
	movq	_IRQF_TRIGGER_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	andq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	16(%r14), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_2:
	movq	_IRQF_TRIGGER_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.3:
	movl	16(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
LBB0_4:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movl	(%r15), %ecx
	movl	4(%r15), %edi
	movq	_dm9000_interrupt@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_dm9000_reset
	movq	%r15, %rdi
	callq	_dm9000_init_dm9000
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_netif_msg_link
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_mii_check_media
	movq	%r15, %rdi
	callq	_netif_start_queue
	movq	%r14, %rdi
	callq	_dm9000_schedule_poll
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_TRIGGER_MASK,8,3          ## @IRQF_TRIGGER_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enabling %s\n"

	.comm	_IRQF_TRIGGER_NONE,8,3          ## @IRQF_TRIGGER_NONE
L_.str.1:                               ## @.str.1
	.asciz	"WARNING: no IRQ resource flags set.\n"

	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.comm	_dm9000_interrupt,4,2           ## @dm9000_interrupt
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_dm9000_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9000_open
_dm9000_open:                           ; @dm9000_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _IRQF_TRIGGER_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IRQF_TRIGGER_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	and	x21, x9, x8
	bl	_netif_msg_ifup
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
	ldr	w2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_2:
Lloh5:
	adrp	x8, _IRQF_TRIGGER_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQF_TRIGGER_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20, #16]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_4:
Lloh10:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	orr	x2, x8, x21
	ldp	w3, w0, [x19]
Lloh13:
	adrp	x1, _dm9000_interrupt@GOTPAGE
Lloh14:
	ldr	x1, [x1, _dm9000_interrupt@GOTPAGEOFF]
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_dm9000_reset
	mov	x0, x19
	bl	_dm9000_init_dm9000
	str	xzr, [x20, #8]
	mov	x0, x20
	bl	_netif_msg_link
	mov	x1, x0
	mov	x0, x20
	mov	w2, #1
	bl	_mii_check_media
	mov	x0, x19
	bl	_netif_start_queue
	mov	x0, x20
	bl	_dm9000_schedule_poll
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_TRIGGER_MASK,8,3          ; @IRQF_TRIGGER_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enabling %s\n"

	.comm	_IRQF_TRIGGER_NONE,8,3          ; @IRQF_TRIGGER_NONE
l_.str.1:                               ; @.str.1
	.asciz	"WARNING: no IRQ resource flags set.\n"

	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.comm	_dm9000_interrupt,4,2           ; @dm9000_interrupt
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_dm9000_open
.subsections_via_symbols
