	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_mac_read
_smsc911x_mac_read:                     ## @smsc911x_mac_read
	.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	%esi, %r14d
	movq	%rdi, %rbx
	callq	_SMSC_ASSERT_MAC_LOCK
	movq	_MAC_CSR_CMD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_smsc911x_reg_read
	movq	_MAC_CSR_CMD_CSR_BUSY_@GOTPCREL(%rip), %r12
	andl	(%r12), %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_4:
	movq	%rbx, %rdi
	callq	_SMSC_WARN
	movl	$-1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movzbl	%r14b, %edx
	orl	(%r12), %edx
	movl	(%r15), %esi
	movq	_MAC_CSR_CMD_R_NOT_W_@GOTPCREL(%rip), %rax
	orl	(%rax), %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:
	movq	_MAC_CSR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smsc911x_reg_read              ## TAILCALL
LBB0_3:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	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	"MAC busy at entry"

	.comm	_MAC_CSR_CMD_R_NOT_W_,4,2       ## @MAC_CSR_CMD_R_NOT_W_
	.comm	_BYTE_TEST,4,2                  ## @BYTE_TEST
	.comm	_MAC_CSR_DATA,4,2               ## @MAC_CSR_DATA
L_.str.1:                               ## @.str.1
	.asciz	"MAC busy after read"

	.no_dead_strip	_smsc911x_mac_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_mac_read
_smsc911x_mac_read:                     ; @smsc911x_mac_read
	.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, x1
	mov	x19, x0
	bl	_SMSC_ASSERT_MAC_LOCK
Lloh0:
	adrp	x21, _MAC_CSR_CMD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAC_CSR_CMD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_smsc911x_reg_read
Lloh2:
	adrp	x22, _MAC_CSR_CMD_CSR_BUSY_@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MAC_CSR_CMD_CSR_BUSY_@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w0, w8, w0
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _hw@GOTPAGE
Lloh5:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_SMSC_WARN
	mov	w0, #-1
	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_3:
	ldr	w1, [x21]
	and	w8, w20, #0xff
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _MAC_CSR_CMD_R_NOT_W_@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAC_CSR_CMD_R_NOT_W_@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
	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:
Lloh15:
	adrp	x8, _MAC_CSR_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAC_CSR_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_smsc911x_reg_read
LBB0_5:
Lloh18:
	adrp	x8, _hw@GOTPAGE
Lloh19:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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	"MAC busy at entry"

	.comm	_MAC_CSR_CMD_R_NOT_W_,4,2       ; @MAC_CSR_CMD_R_NOT_W_
	.comm	_BYTE_TEST,4,2                  ; @BYTE_TEST
	.comm	_MAC_CSR_DATA,4,2               ; @MAC_CSR_DATA
l_.str.1:                               ; @.str.1
	.asciz	"MAC busy after read"

	.no_dead_strip	_smsc911x_mac_read
.subsections_via_symbols
