	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_hdmi_audio_config_update
_hsw_hdmi_audio_config_update:          ## @hsw_hdmi_audio_config_update
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	(%rax), %rax
	movl	(%r15), %r14d
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %ecx
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %r12d
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
LBB0_3:
	movl	%r14d, %edi
	callq	_HSW_AUD_CFG
	movl	%eax, %edi
	callq	_I915_READ
	movq	_AUD_CONFIG_N_VALUE_INDEX@GOTPCREL(%rip), %rcx
	movq	_AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	orl	(%rcx), %r13d
	movq	_AUD_CONFIG_N_PROG_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	notl	%r13d
	andl	%eax, %r13d
	movq	%r15, %rdi
	callq	_audio_config_hdmi_pixel_clock
	movl	%eax, %ebx
	orl	%r13d, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_audio_config_hdmi_get_n
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_AUD_CONFIG_N_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	%r15d, %edi
	callq	_AUD_CONFIG_N
	orl	%ebx, %eax
	movq	_AUD_CONFIG_N_PROG_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_6:
	movl	%r14d, %edi
	callq	_HSW_AUD_CFG
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r14d, %edi
	callq	_HSW_AUD_M_CTS_ENABLE
	movl	%eax, %edi
	callq	_I915_READ
	movq	_AUD_M_CTS_M_PROG_ENABLE@GOTPCREL(%rip), %rcx
	movq	_AUD_M_CTS_M_VALUE_INDEX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r14d, %edi
	callq	_HSW_AUD_M_CTS_ENABLE
	movl	%eax, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AUD_CONFIG_N_VALUE_INDEX,4,2   ## @AUD_CONFIG_N_VALUE_INDEX
	.comm	_AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK,4,2 ## @AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK
	.comm	_AUD_CONFIG_N_PROG_ENABLE,4,2   ## @AUD_CONFIG_N_PROG_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using N %d\n"

	.comm	_AUD_CONFIG_N_MASK,4,2          ## @AUD_CONFIG_N_MASK
L_.str.1:                               ## @.str.1
	.asciz	"using automatic N\n"

	.comm	_AUD_M_CTS_M_PROG_ENABLE,4,2    ## @AUD_M_CTS_M_PROG_ENABLE
	.comm	_AUD_M_CTS_M_VALUE_INDEX,4,2    ## @AUD_M_CTS_M_VALUE_INDEX
	.no_dead_strip	_hsw_hdmi_audio_config_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_hdmi_audio_config_update
_hsw_hdmi_audio_config_update:          ; @hsw_hdmi_audio_config_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	ldr	x8, [x0]
	ldr	w19, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w9, [x21]
	ldr	x8, [x8]
	ldr	w22, [x8, x9, lsl #2]
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	mov	x0, x19
	bl	_HSW_AUD_CFG
	bl	_I915_READ
Lloh0:
	adrp	x8, _AUD_CONFIG_N_VALUE_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUD_CONFIG_N_VALUE_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x23, _AUD_CONFIG_N_PROG_ENABLE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _AUD_CONFIG_N_PROG_ENABLE@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
	bic	w21, w0, w8
	mov	x0, x20
	bl	_audio_config_hdmi_pixel_clock
	orr	w21, w21, w0
	mov	x0, x20
	mov	x1, x22
	bl	_audio_config_hdmi_get_n
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
	str	x20, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh10:
	adrp	x8, _AUD_CONFIG_N_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AUD_CONFIG_N_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w21, w21, w8
	mov	x0, x20
	bl	_AUD_CONFIG_N
	orr	w8, w21, w0
	ldr	w9, [x23]
	orr	w21, w8, w9
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_6:
	mov	x0, x19
	bl	_HSW_AUD_CFG
	mov	x1, x21
	bl	_I915_WRITE
	mov	x0, x19
	bl	_HSW_AUD_M_CTS_ENABLE
	bl	_I915_READ
Lloh15:
	adrp	x8, _AUD_M_CTS_M_PROG_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AUD_M_CTS_M_PROG_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _AUD_M_CTS_M_VALUE_INDEX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AUD_M_CTS_M_VALUE_INDEX@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w0, w8
	mov	x0, x19
	bl	_HSW_AUD_M_CTS_ENABLE
	mov	x1, x20
	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
	add	sp, sp, #80
	b	_I915_WRITE
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AUD_CONFIG_N_VALUE_INDEX,4,2   ; @AUD_CONFIG_N_VALUE_INDEX
	.comm	_AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK,4,2 ; @AUD_CONFIG_PIXEL_CLOCK_HDMI_MASK
	.comm	_AUD_CONFIG_N_PROG_ENABLE,4,2   ; @AUD_CONFIG_N_PROG_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using N %d\n"

	.comm	_AUD_CONFIG_N_MASK,4,2          ; @AUD_CONFIG_N_MASK
l_.str.1:                               ; @.str.1
	.asciz	"using automatic N\n"

	.comm	_AUD_M_CTS_M_PROG_ENABLE,4,2    ; @AUD_M_CTS_M_PROG_ENABLE
	.comm	_AUD_M_CTS_M_VALUE_INDEX,4,2    ; @AUD_M_CTS_M_VALUE_INDEX
	.no_dead_strip	_hsw_hdmi_audio_config_update
.subsections_via_symbols
