	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_smi_indirect_write
_mv88e6xxx_smi_indirect_write:          ## @mv88e6xxx_smi_indirect_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	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movq	_MV88E6XXX_SMI_CMD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$15, %ecx
	xorl	%r8d, %r8d
	callq	_mv88e6xxx_smi_direct_wait
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %esi
	movq	_MV88E6XXX_SMI_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	callq	_mv88e6xxx_smi_direct_write
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movq	_MV88E6XXX_SMI_CMD_BUSY@GOTPCREL(%rip), %rax
	movq	_MV88E6XXX_SMI_CMD_MODE_22@GOTPCREL(%rip), %rcx
	movq	_MV88E6XXX_SMI_CMD_OP_22_WRITE@GOTPCREL(%rip), %rdi
	shll	$5, %r14d
	orl	%r15d, %r14d
	orl	(%rax), %r14d
	orl	(%rcx), %r14d
	orl	(%rdi), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_mv88e6xxx_smi_direct_write
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$15, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mv88e6xxx_smi_direct_wait      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_SMI_CMD,4,2          ## @MV88E6XXX_SMI_CMD
	.comm	_MV88E6XXX_SMI_DATA,4,2         ## @MV88E6XXX_SMI_DATA
	.comm	_MV88E6XXX_SMI_CMD_BUSY,4,2     ## @MV88E6XXX_SMI_CMD_BUSY
	.comm	_MV88E6XXX_SMI_CMD_MODE_22,4,2  ## @MV88E6XXX_SMI_CMD_MODE_22
	.comm	_MV88E6XXX_SMI_CMD_OP_22_WRITE,4,2 ## @MV88E6XXX_SMI_CMD_OP_22_WRITE
	.no_dead_strip	_mv88e6xxx_smi_indirect_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_smi_indirect_write
_mv88e6xxx_smi_indirect_write:          ; @mv88e6xxx_smi_indirect_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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w1, [x0]
Lloh0:
	adrp	x23, _MV88E6XXX_SMI_CMD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MV88E6XXX_SMI_CMD@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w3, #15
	mov	w4, #0
	bl	_mv88e6xxx_smi_direct_wait
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w1, [x19]
Lloh2:
	adrp	x8, _MV88E6XXX_SMI_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MV88E6XXX_SMI_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x22
	bl	_mv88e6xxx_smi_direct_write
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w1, [x19]
Lloh5:
	adrp	x8, _MV88E6XXX_SMI_CMD_BUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MV88E6XXX_SMI_CMD_BUSY@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MV88E6XXX_SMI_CMD_MODE_22@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MV88E6XXX_SMI_CMD_MODE_22@GOTPAGEOFF]
Lloh10:
	adrp	x10, _MV88E6XXX_SMI_CMD_OP_22_WRITE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MV88E6XXX_SMI_CMD_OP_22_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	ldr	w10, [x10]
	orr	w11, w20, w21, lsl #5
	orr	w8, w11, w8
	orr	w8, w8, w9
	orr	w3, w8, w10
	mov	x0, x19
	bl	_mv88e6xxx_smi_direct_write
	cbz	w0, LBB0_4
LBB0_3:
	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_4:
	ldr	w1, [x19]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w3, #15
	mov	w4, #0
	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	_mv88e6xxx_smi_direct_wait
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_SMI_CMD,4,2          ; @MV88E6XXX_SMI_CMD
	.comm	_MV88E6XXX_SMI_DATA,4,2         ; @MV88E6XXX_SMI_DATA
	.comm	_MV88E6XXX_SMI_CMD_BUSY,4,2     ; @MV88E6XXX_SMI_CMD_BUSY
	.comm	_MV88E6XXX_SMI_CMD_MODE_22,4,2  ; @MV88E6XXX_SMI_CMD_MODE_22
	.comm	_MV88E6XXX_SMI_CMD_OP_22_WRITE,4,2 ; @MV88E6XXX_SMI_CMD_OP_22_WRITE
	.no_dead_strip	_mv88e6xxx_smi_indirect_write
.subsections_via_symbols
