	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_smb_write
_jme_smb_write:                         ## @jme_smb_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, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_JME_SMBCSR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_jread32
	movq	_JME_SMB_BUSY_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	_SMBCSR_BUSY@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r12d
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_jread32
	testl	%eax, (%rbx)
	jne	LBB0_1
	jmp	LBB0_4
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_9
LBB0_4:
	movq	_SMBINTF_HWDATW_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	shll	%cl, %edx
	movq	_SMBINTF_HWDATW@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_SMBINTF_HWADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movq	_JME_SMBINTF@GOTPCREL(%rip), %r13
	movq	_SMBINTF_HWADDR@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	orl	%edx, %r14d
	movq	_SMBINTF_HWRWN_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r13), %esi
	movq	_SMBINTF_HWCMD@GOTPCREL(%rip), %r12
	orl	(%r12), %r14d
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_jwrite32
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_jread32
	movq	_JME_SMB_BUSY_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	testl	%eax, (%r12)
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_jread32
	testl	%eax, (%r12)
	jne	LBB0_5
	jmp	LBB0_8
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_9
LBB0_8:
	movl	$2, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdelay                         ## TAILCALL
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msg_hw                         ## TAILCALL
	.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_HWDATW_SHIFT,4,2       ## @SMBINTF_HWDATW_SHIFT
	.comm	_SMBINTF_HWDATW,4,2             ## @SMBINTF_HWDATW
	.comm	_SMBINTF_HWADDR_SHIFT,4,2       ## @SMBINTF_HWADDR_SHIFT
	.comm	_SMBINTF_HWADDR,4,2             ## @SMBINTF_HWADDR
	.comm	_SMBINTF_HWRWN_WRITE,4,2        ## @SMBINTF_HWRWN_WRITE
	.comm	_SMBINTF_HWCMD,4,2              ## @SMBINTF_HWCMD
	.no_dead_strip	_jme_smb_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_smb_write
_jme_smb_write:                         ; @jme_smb_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _JME_SMBCSR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _JME_SMBCSR@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_jread32
Lloh2:
	adrp	x22, _JME_SMB_BUSY_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _JME_SMB_BUSY_TIMEOUT@GOTPAGEOFF]
	ldr	w24, [x22]
Lloh4:
	adrp	x25, _SMBCSR_BUSY@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SMBCSR_BUSY@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	subs	w24, w24, #1
	b.eq	LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x23]
	mov	x0, x19
	bl	_jread32
	ldr	w8, [x25]
	tst	w8, w0
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
	cbz	w24, LBB0_9
LBB0_4:
Lloh6:
	adrp	x23, _JME_SMBINTF@GOTPAGE
Lloh7:
	ldr	x23, [x23, _JME_SMBINTF@GOTPAGEOFF]
Lloh8:
	adrp	x8, _SMBINTF_HWDATW_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SMBINTF_HWDATW_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w8, w21, w8
Lloh11:
	adrp	x9, _SMBINTF_HWDATW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SMBINTF_HWDATW@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w8, w8, w9
Lloh14:
	adrp	x9, _SMBINTF_HWADDR_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SMBINTF_HWADDR_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w9, w20, w9
Lloh17:
	adrp	x10, _SMBINTF_HWADDR@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SMBINTF_HWADDR@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh19:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _SMBINTF_HWRWN_WRITE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SMBINTF_HWRWN_WRITE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x20, _SMBINTF_HWCMD@GOTPAGE
Lloh24:
	ldr	x20, [x20, _SMBINTF_HWCMD@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_jwrite32
	ldr	w1, [x23]
	mov	x0, x19
	bl	_jread32
	ldr	w21, [x22]
	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, [x23]
	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:
	mov	w0, #2
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mdelay
LBB0_9:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_msg_hw
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.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_HWDATW_SHIFT,4,2       ; @SMBINTF_HWDATW_SHIFT
	.comm	_SMBINTF_HWDATW,4,2             ; @SMBINTF_HWDATW
	.comm	_SMBINTF_HWADDR_SHIFT,4,2       ; @SMBINTF_HWADDR_SHIFT
	.comm	_SMBINTF_HWADDR,4,2             ; @SMBINTF_HWADDR
	.comm	_SMBINTF_HWRWN_WRITE,4,2        ; @SMBINTF_HWRWN_WRITE
	.comm	_SMBINTF_HWCMD,4,2              ; @SMBINTF_HWCMD
	.no_dead_strip	_jme_smb_write
.subsections_via_symbols
