	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function pxa168_eth_open
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pxa168_eth_open:                       ## @pxa168_eth_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	%r15, %rdi
	callq	_pxa168_init_phy
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	_pxa168_eth_int_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edi
	movl	8(%r15), %ecx
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	addq	$4, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	$0, 24(%r14)
	movq	%r15, %rdi
	callq	_rxq_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_txq_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_rxq_deinit
LBB0_7:
	movl	(%r15), %edi
	movq	%r15, %rsi
	callq	_free_irq
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movq	%r15, %rdi
	callq	_rxq_refill
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movq	%r15, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	callq	_napi_enable
	movq	%r15, %rdi
	callq	_eth_port_start
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_pxa168_eth_int_handler,4,2     ## @pxa168_eth_int_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't assign irq\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_pxa168_eth_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa168_eth_open
_pxa168_eth_open:                       ; @pxa168_eth_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
	mov	x0, x19
	bl	_pxa168_init_phy
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _pxa168_eth_int_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pxa168_eth_int_handler@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_3
; %bb.2:
	add	x0, x19, #4
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_3:
	str	xzr, [x20, #24]
	mov	x0, x19
	bl	_rxq_init
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_txq_init
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_rxq_deinit
LBB0_6:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	stp	xzr, xzr, [x20, #8]
	mov	x0, x19
	bl	_rxq_refill
	stp	xzr, xzr, [x20, #8]
	mov	x0, x19
	bl	_netif_carrier_off
	mov	x0, x20
	bl	_napi_enable
	mov	x0, x19
	bl	_eth_port_start
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_pxa168_eth_int_handler,4,2     ; @pxa168_eth_int_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't assign irq\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_pxa168_eth_open
.subsections_via_symbols
