	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	4(%rbx), %edi
	callq	_irq_get_trigger_type
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_netif_msg_ifup
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	16(%r14), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_2:
	movq	_IRQF_TRIGGER_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	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
	orl	(%rax), %r12d
	movq	_DM9000_GPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_iow
	movl	$1, %edi
	callq	_mdelay
	movq	%rbx, %rdi
	callq	_dm9000_init_dm9000
	movl	(%rbx), %ecx
	movl	4(%rbx), %edi
	movq	_dm9000_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_dm9000_unmask_interrupts
	movq	$0, 8(%r14)
	movq	%r14, %r12
	addq	$4, %r12
	movq	%r14, %rdi
	callq	_netif_msg_link
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_mii_check_media
	movq	%rbx, %rdi
	callq	_netif_start_queue
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_schedule_delayed_work
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enabling %s\n"

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

	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_DM9000_GPR,4,2                 ## @DM9000_GPR
	.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	w0, [x19, #4]
	bl	_irq_get_trigger_type
	mov	x21, x0
	mov	x0, x20
	bl	_netif_msg_ifup
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
	ldr	w2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_2:
Lloh2:
	adrp	x8, _IRQF_TRIGGER_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQF_TRIGGER_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_4:
Lloh7:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w21, w8, w21
Lloh10:
	adrp	x8, _DM9000_GPR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DM9000_GPR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_iow
	mov	w0, #1
	bl	_mdelay
	mov	x0, x19
	bl	_dm9000_init_dm9000
Lloh13:
	adrp	x8, _dm9000_interrupt@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dm9000_interrupt@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldp	w3, w0, [x19]
	mov	x2, x21
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_dm9000_unmask_interrupts
	str	xzr, [x20, #8]
	add	x21, x20, #4
	mov	x0, x20
	bl	_netif_msg_link
	mov	x1, x0
	mov	x0, x21
	mov	w2, #1
	bl	_mii_check_media
	mov	x0, x19
	bl	_netif_start_queue
	mov	x0, x20
	mov	w1, #1
	bl	_schedule_delayed_work
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enabling %s\n"

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

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