	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_hda_configure_awg
_sti_hda_configure_awg:                 ## @sti_hda_configure_awg
	.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, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movl	%ebx, %r13d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	leaq	(,%r13,4), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14), %esi
	movl	%r14d, %edx
	andl	$-4, %edx
	movq	_HDA_SYNC_AWGI@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	movq	%r12, %rdi
	callq	_hda_write
	addq	$4, %r14
	cmpq	%r14, %rbx
	jne	LBB0_2
LBB0_3:
	movq	_AWG_MAX_INST@GOTPCREL(%rip), %r15
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r15)
	jbe	LBB0_6
## %bb.4:
	leaq	(,%r13,4), %rbx
	movq	_HDA_SYNC_AWGI@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edx
	andl	$-4, %edx
	addq	(%r14), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hda_write
	incq	%r13
	movl	(%r15), %eax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jb	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_HDA_SYNC_AWGI,8,3              ## @HDA_SYNC_AWGI
	.comm	_AWG_MAX_INST,4,2               ## @AWG_MAX_INST
	.no_dead_strip	_sti_hda_configure_awg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_hda_configure_awg
_sti_hda_configure_awg:                 ; @sti_hda_configure_awg
	.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, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
Lloh2:
	adrp	x22, _HDA_SYNC_AWGI@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HDA_SYNC_AWGI@GOTPAGEOFF]
	cbz	w20, LBB0_3
; %bb.1:
	mov	x23, #0
	mov	w8, w20
	lsl	x24, x8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, x23]
	ldr	x8, [x22]
	and	x9, x23, #0xfffffffc
	add	x2, x8, x9
	mov	x0, x19
	bl	_hda_write
	add	x23, x23, #4
	cmp	x24, x23
	b.ne	LBB0_2
LBB0_3:
Lloh4:
	adrp	x21, _AWG_MAX_INST@GOTPAGE
Lloh5:
	ldr	x21, [x21, _AWG_MAX_INST@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w20
	b.ls	LBB0_6
; %bb.4:
	mov	w20, w20
	lsl	x23, x20, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	and	x9, x23, #0xfffffffc
	add	x2, x8, x9
	mov	x0, x19
	mov	w1, #0
	bl	_hda_write
	add	x20, x20, #1
	ldr	w8, [x21]
	add	x23, x23, #4
	cmp	x20, x8
	b.lo	LBB0_5
LBB0_6:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_HDA_SYNC_AWGI,8,3              ; @HDA_SYNC_AWGI
	.comm	_AWG_MAX_INST,4,2               ; @AWG_MAX_INST
	.no_dead_strip	_sti_hda_configure_awg
.subsections_via_symbols
