	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa168_smi_write
_pxa168_smi_write:                      ## @pxa168_smi_write
	.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
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_smi_wait_ready
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	jmp	LBB0_5
LBB0_2:
	movq	_SMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$16, %r12d
	shll	$21, %ebx
	orl	%r12d, %ebx
	movq	_SMI_OP_W@GOTPCREL(%rip), %rax
	movzwl	%r15w, %edx
	orl	%ebx, %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_wrl
	movq	%r14, %rdi
	callq	_smi_wait_ready
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pxa168_eth: SMI bus busy timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SMI,4,2                        ## @SMI
	.comm	_SMI_OP_W,4,2                   ## @SMI_OP_W
	.no_dead_strip	_pxa168_smi_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa168_smi_write
_pxa168_smi_write:                      ; @pxa168_smi_write
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_smi_wait_ready
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _SMI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SMI@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	lsl	w8, w22, #21
	orr	w8, w8, w21, lsl #16
Lloh5:
	adrp	x9, _SMI_OP_W@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SMI_OP_W@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bfxil	w8, w20, #0, #16
	orr	w2, w8, w9
	mov	x0, x19
	bl	_wrl
	mov	x0, x19
	bl	_smi_wait_ready
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_4:
Lloh10:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pxa168_eth: SMI bus busy timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SMI,4,2                        ; @SMI
	.comm	_SMI_OP_W,4,2                   ; @SMI_OP_W
	.no_dead_strip	_pxa168_smi_write
.subsections_via_symbols
