	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi_wp_audio_config_format    ## -- Begin function hdmi_wp_audio_config_format
	.p2align	4, 0x90
_hdmi_wp_audio_config_format:           ## @hdmi_wp_audio_config_format
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DSSDBG
	movl	4(%r14), %edi
	movq	_HDMI_WP_AUDIO_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_hdmi_read_reg
	cmpl	$4, (%r14)
	jne	LBB0_2
## %bb.1:
	movl	28(%rbx), %esi
	movl	%eax, %edi
	movl	$26, %edx
	movl	$24, %ecx
	callq	_FLD_MOD
	movl	24(%rbx), %esi
	movl	%eax, %edi
	movl	$23, %edx
	movl	$16, %ecx
	callq	_FLD_MOD
LBB0_2:
	movl	20(%rbx), %esi
	movl	%eax, %edi
	movl	$5, %edx
	movl	$5, %ecx
	callq	_FLD_MOD
	movl	16(%rbx), %esi
	movl	%eax, %edi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_FLD_MOD
	movl	12(%rbx), %esi
	movl	%eax, %edi
	movl	$3, %edx
	movl	$3, %ecx
	callq	_FLD_MOD
	movl	8(%rbx), %esi
	movl	%eax, %edi
	movl	$2, %edx
	movl	$2, %ecx
	callq	_FLD_MOD
	movl	4(%rbx), %esi
	movl	%eax, %edi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_FLD_MOD
	movl	(%rbx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_FLD_MOD
	movl	4(%r14), %edi
	movl	(%r15), %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hdmi_write_reg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter hdmi_wp_audio_config_format\n"

	.comm	_HDMI_WP_AUDIO_CFG,4,2          ## @HDMI_WP_AUDIO_CFG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi_wp_audio_config_format    ; -- Begin function hdmi_wp_audio_config_format
	.p2align	2
_hdmi_wp_audio_config_format:           ; @hdmi_wp_audio_config_format
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSDBG
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x21, _HDMI_WP_AUDIO_CFG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HDMI_WP_AUDIO_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_hdmi_read_reg
	ldr	w8, [x19]
	cmp	w8, #4
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x20, #28]
	mov	w2, #26
	mov	w3, #24
	bl	_FLD_MOD
	ldr	w1, [x20, #24]
	mov	w2, #23
	mov	w3, #16
	bl	_FLD_MOD
LBB0_2:
	ldr	w1, [x20, #20]
	mov	w2, #5
	mov	w3, #5
	bl	_FLD_MOD
	ldr	w1, [x20, #16]
	mov	w2, #4
	mov	w3, #4
	bl	_FLD_MOD
	ldr	w1, [x20, #12]
	mov	w2, #3
	mov	w3, #3
	bl	_FLD_MOD
	ldr	w1, [x20, #8]
	mov	w2, #2
	mov	w3, #2
	bl	_FLD_MOD
	ldr	w1, [x20, #4]
	mov	w2, #1
	mov	w3, #1
	bl	_FLD_MOD
	ldr	w1, [x20]
	mov	w2, #0
	mov	w3, #0
	bl	_FLD_MOD
	mov	x2, x0
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_hdmi_write_reg
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter hdmi_wp_audio_config_format\n"

	.comm	_HDMI_WP_AUDIO_CFG,4,2          ; @HDMI_WP_AUDIO_CFG
.subsections_via_symbols
