	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1000_open
_au1000_open:                           ## @au1000_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
	movq	_drv@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	movq	%rbx, %rdx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	_au1000_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edi
	movl	12(%rbx), %ecx
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	callq	_au1000_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movl	8(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	jmp	LBB0_7
LBB0_4:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_phy_start
LBB0_6:
	movq	%rbx, %rdi
	callq	_netif_start_queue
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_netif_dbg
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open: dev=%p\n"

	.comm	_au1000_interrupt,4,2           ## @au1000_interrupt
L_.str.1:                               ## @.str.1
	.asciz	"unable to get IRQ %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"error in au1000_init\n"

L_.str.3:                               ## @.str.3
	.asciz	"open: Initialization done.\n"

	.no_dead_strip	_au1000_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1000_open
_au1000_open:                           ; @au1000_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x22, _drv@GOTPAGE
Lloh1:
	ldr	x22, [x22, _drv@GOTPAGEOFF]
	ldr	w1, [x22]
	str	x19, [sp]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x19
	bl	_netif_dbg
Lloh4:
	adrp	x8, _au1000_interrupt@GOTPAGE
Lloh5:
	ldr	x8, [x8, _au1000_interrupt@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldp	w0, w3, [x19, #8]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_au1000_init
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_phy_start
LBB0_6:
	mov	x0, x19
	bl	_netif_start_queue
	ldr	w1, [x22]
Lloh11:
	adrp	x3, l_.str.3@PAGE
Lloh12:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_dbg
	mov	w21, #0
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open: dev=%p\n"

	.comm	_au1000_interrupt,4,2           ; @au1000_interrupt
l_.str.1:                               ; @.str.1
	.asciz	"unable to get IRQ %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"error in au1000_init\n"

l_.str.3:                               ; @.str.3
	.asciz	"open: Initialization done.\n"

	.no_dead_strip	_au1000_open
.subsections_via_symbols
