	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_smb_read
_jme_smb_read:                          ## @jme_smb_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	%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	%esi, %r14d
	movq	%rdi, %r15
	movq	_JME_SMBCSR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_jread32
	movq	_JME_SMB_BUSY_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_SMBCSR_BUSY@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_6
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_jread32
	testl	%eax, (%r13)
	jne	LBB0_1
	jmp	LBB0_3
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_3:
	movq	_SMBINTF_HWADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movq	_SMBINTF_HWADDR@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_JME_SMBINTF@GOTPCREL(%rip), %r12
	movq	_SMBINTF_HWRWN_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r12), %esi
	movq	_SMBINTF_HWCMD@GOTPCREL(%rip), %r13
	orl	(%r13), %r14d
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_jwrite32
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_jread32
	movq	_JME_SMB_BUSY_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	testl	%eax, (%r13)
	je	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_jread32
	testl	%eax, (%r13)
	jne	LBB0_4
	jmp	LBB0_9
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_9:
	movq	_SMBINTF_HWDATR@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SMBINTF_HWDATR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_msg_hw
	movl	$255, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JME_SMBCSR,4,2                 ## @JME_SMBCSR
	.comm	_JME_SMB_BUSY_TIMEOUT,4,2       ## @JME_SMB_BUSY_TIMEOUT
	.comm	_SMBCSR_BUSY,4,2                ## @SMBCSR_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMB Bus Busy.\n"

	.comm	_JME_SMBINTF,4,2                ## @JME_SMBINTF
	.comm	_SMBINTF_HWADDR_SHIFT,4,2       ## @SMBINTF_HWADDR_SHIFT
	.comm	_SMBINTF_HWADDR,4,2             ## @SMBINTF_HWADDR
	.comm	_SMBINTF_HWRWN_READ,4,2         ## @SMBINTF_HWRWN_READ
	.comm	_SMBINTF_HWCMD,4,2              ## @SMBINTF_HWCMD
	.comm	_SMBINTF_HWDATR,4,2             ## @SMBINTF_HWDATR
	.comm	_SMBINTF_HWDATR_SHIFT,4,2       ## @SMBINTF_HWDATR_SHIFT
	.no_dead_strip	_jme_smb_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_smb_read
_jme_smb_read:                          ; @jme_smb_read
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _JME_SMBCSR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _JME_SMBCSR@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_jread32
Lloh2:
	adrp	x21, _JME_SMB_BUSY_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _JME_SMB_BUSY_TIMEOUT@GOTPAGEOFF]
	ldr	w23, [x21]
Lloh4:
	adrp	x24, _SMBCSR_BUSY@GOTPAGE
Lloh5:
	ldr	x24, [x24, _SMBCSR_BUSY@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	subs	w23, w23, #1
	b.eq	LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x19
	bl	_jread32
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
	cbz	w23, LBB0_9
LBB0_4:
Lloh6:
	adrp	x22, _JME_SMBINTF@GOTPAGE
Lloh7:
	ldr	x22, [x22, _JME_SMBINTF@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _SMBINTF_HWADDR_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SMBINTF_HWADDR_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w8, w20, w8
Lloh11:
	adrp	x9, _SMBINTF_HWADDR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SMBINTF_HWADDR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w8, w8, w9
Lloh14:
	adrp	x9, _SMBINTF_HWRWN_READ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SMBINTF_HWRWN_READ@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x20, _SMBINTF_HWCMD@GOTPAGE
Lloh18:
	ldr	x20, [x20, _SMBINTF_HWCMD@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_jwrite32
	ldr	w1, [x22]
	mov	x0, x19
	bl	_jread32
	ldr	w21, [x21]
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	subs	w21, w21, #1
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x19
	bl	_jread32
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_5
	b	LBB0_8
LBB0_7:
	cbz	w21, LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _SMBINTF_HWDATR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SMBINTF_HWDATR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh22:
	adrp	x9, _SMBINTF_HWDATR_SHIFT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SMBINTF_HWDATR_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	lsr	w0, w8, w9
	b	LBB0_10
LBB0_9:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_msg_hw
	mov	w0, #255
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_JME_SMBCSR,4,2                 ; @JME_SMBCSR
	.comm	_JME_SMB_BUSY_TIMEOUT,4,2       ; @JME_SMB_BUSY_TIMEOUT
	.comm	_SMBCSR_BUSY,4,2                ; @SMBCSR_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMB Bus Busy.\n"

	.comm	_JME_SMBINTF,4,2                ; @JME_SMBINTF
	.comm	_SMBINTF_HWADDR_SHIFT,4,2       ; @SMBINTF_HWADDR_SHIFT
	.comm	_SMBINTF_HWADDR,4,2             ; @SMBINTF_HWADDR
	.comm	_SMBINTF_HWRWN_READ,4,2         ; @SMBINTF_HWRWN_READ
	.comm	_SMBINTF_HWCMD,4,2              ; @SMBINTF_HWCMD
	.comm	_SMBINTF_HWDATR,4,2             ; @SMBINTF_HWDATR
	.comm	_SMBINTF_HWDATR_SHIFT,4,2       ; @SMBINTF_HWDATR_SHIFT
	.no_dead_strip	_jme_smb_read
.subsections_via_symbols
