	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_mac_write
_smsc911x_mac_write:                    ## @smsc911x_mac_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_SMSC_ASSERT_MAC_LOCK
	movq	_MAC_CSR_CMD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_smsc911x_reg_read
	movq	_MAC_CSR_CMD_CSR_BUSY_@GOTPCREL(%rip), %r13
	andl	(%r13), %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
LBB0_4:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SMSC_WARN                      ## TAILCALL
LBB0_2:
	movq	_MAC_CSR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_smsc911x_reg_write
	movl	(%r12), %esi
	movzbl	%r14b, %edx
	orl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_smsc911x_reg_write
	movq	_BYTE_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smsc911x_reg_read
	movq	%rbx, %rdi
	callq	_smsc911x_mac_complete
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_CSR_CMD,4,2                ## @MAC_CSR_CMD
	.comm	_MAC_CSR_CMD_CSR_BUSY_,4,2      ## @MAC_CSR_CMD_CSR_BUSY_
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smsc911x_mac_write failed, MAC busy at entry"

	.comm	_MAC_CSR_DATA,4,2               ## @MAC_CSR_DATA
	.comm	_BYTE_TEST,4,2                  ## @BYTE_TEST
L_.str.1:                               ## @.str.1
	.asciz	"smsc911x_mac_write failed, MAC busy after write"

	.no_dead_strip	_smsc911x_mac_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_mac_write
_smsc911x_mac_write:                    ; @smsc911x_mac_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_SMSC_ASSERT_MAC_LOCK
Lloh0:
	adrp	x22, _MAC_CSR_CMD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAC_CSR_CMD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc911x_reg_read
Lloh2:
	adrp	x23, _MAC_CSR_CMD_CSR_BUSY_@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MAC_CSR_CMD_CSR_BUSY_@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w0, w8, w0
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
Lloh6:
	adrp	x8, _hw@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_SMSC_WARN
LBB0_3:
Lloh9:
	adrp	x8, _MAC_CSR_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAC_CSR_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_smsc911x_reg_write
	ldr	w1, [x22]
	and	w8, w20, #0xff
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_smsc911x_reg_write
Lloh12:
	adrp	x8, _BYTE_TEST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BYTE_TEST@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc911x_reg_read
	mov	x0, x19
	bl	_smsc911x_mac_complete
	cmp	x0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_5
; %bb.4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_CSR_CMD,4,2                ; @MAC_CSR_CMD
	.comm	_MAC_CSR_CMD_CSR_BUSY_,4,2      ; @MAC_CSR_CMD_CSR_BUSY_
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smsc911x_mac_write failed, MAC busy at entry"

	.comm	_MAC_CSR_DATA,4,2               ; @MAC_CSR_DATA
	.comm	_BYTE_TEST,4,2                  ; @BYTE_TEST
l_.str.1:                               ; @.str.1
	.asciz	"smsc911x_mac_write failed, MAC busy after write"

	.no_dead_strip	_smsc911x_mac_write
.subsections_via_symbols
