	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_config_DMA
_smi_config_DMA:                        ## @smi_config_DMA
	.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
	movq	%rdi, %r12
	movq	_DMA_TRANS_UNIT_188@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	56(%rdi), %edi
	callq	_smi_read
	movl	%eax, %r14d
	cmpq	$0, 48(%r12)
	je	LBB0_2
## %bb.1:
	movq	_SMI_TS_DMA_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%r12), %rcx
	movl	%r15d, %ebx
	shll	$22, %ebx
	orl	(%rax), %ebx
	movl	(%rcx), %esi
	orl	$268435456, %ebx                ## imm = 0x10000000
	orl	$3, %r14d
	movl	40(%r12), %edi
	callq	_smi_write
	movl	36(%r12), %edi
	callq	_smi_write
	movl	32(%r12), %edi
	movl	%ebx, %esi
	callq	_smi_write
LBB0_2:
	cmpq	$0, 24(%r12)
	je	LBB0_4
## %bb.3:
	movq	_SMI_TS_DMA_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%r12), %rcx
	shll	$22, %r15d
	orl	(%rax), %r15d
	movl	4(%rcx), %esi
	orl	$268435456, %r15d               ## imm = 0x10000000
	orl	$196608, %r14d                  ## imm = 0x30000
	movl	16(%r12), %edi
	callq	_smi_write
	movl	12(%r12), %edi
	callq	_smi_write
	movl	8(%r12), %edi
	movl	%r15d, %esi
	callq	_smi_write
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TRANS_UNIT_188,4,2         ## @DMA_TRANS_UNIT_188
	.comm	_SMI_TS_DMA_BUF_SIZE,4,2        ## @SMI_TS_DMA_BUF_SIZE
	.no_dead_strip	_smi_config_DMA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smi_config_DMA
_smi_config_DMA:                        ; @smi_config_DMA
	.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, x0
Lloh0:
	adrp	x8, _DMA_TRANS_UNIT_188@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TRANS_UNIT_188@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x0, #56]
	bl	_smi_read
	mov	x19, x0
	ldr	x8, [x20, #48]
Lloh3:
	adrp	x23, _SMI_TS_DMA_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SMI_TS_DMA_BUF_SIZE@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x23]
	ldr	x9, [x20]
	ldr	w1, [x9]
	orr	w8, w8, w22, lsl #22
	orr	w21, w8, #0x10000000
	orr	w19, w19, #0x3
	ldr	w0, [x20, #40]
	bl	_smi_write
	ldr	w0, [x20, #36]
	bl	_smi_write
	ldr	w0, [x20, #32]
	mov	x1, x21
	bl	_smi_write
LBB0_2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x23]
	ldr	x9, [x20]
	ldr	w1, [x9, #4]
	orr	w8, w8, w22, lsl #22
	orr	w21, w8, #0x10000000
	orr	w19, w19, #0x30000
	ldr	w0, [x20, #16]
	bl	_smi_write
	ldr	w0, [x20, #12]
	bl	_smi_write
	ldr	w0, [x20, #8]
	mov	x1, x21
	bl	_smi_write
LBB0_4:
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TRANS_UNIT_188,4,2         ; @DMA_TRANS_UNIT_188
	.comm	_SMI_TS_DMA_BUF_SIZE,4,2        ; @SMI_TS_DMA_BUF_SIZE
	.no_dead_strip	_smi_config_DMA
.subsections_via_symbols
