	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dw_hdmi_set_channel_count      ## -- Begin function dw_hdmi_set_channel_count
	.p2align	4, 0x90
_dw_hdmi_set_channel_count:             ## @dw_hdmi_set_channel_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_mutex_lock
	cmpl	$3, %ebx
	jb	LBB0_1
## %bb.2:
	movq	_HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT1@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT0@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HDMI_FC_AUDSCONF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_hdmi_modb
	decl	%ebx
	movq	_HDMI_FC_AUDICONF0_CC_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_HDMI_FC_AUDICONF0_CC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HDMI_FC_AUDICONF0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_hdmi_modb
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT1,4,2 ## @HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT1
	.comm	_HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT0,4,2 ## @HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT0
	.comm	_HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_MASK,4,2 ## @HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_MASK
	.comm	_HDMI_FC_AUDSCONF,4,2           ## @HDMI_FC_AUDSCONF
	.comm	_HDMI_FC_AUDICONF0_CC_OFFSET,4,2 ## @HDMI_FC_AUDICONF0_CC_OFFSET
	.comm	_HDMI_FC_AUDICONF0_CC_MASK,4,2  ## @HDMI_FC_AUDICONF0_CC_MASK
	.comm	_HDMI_FC_AUDICONF0,4,2          ## @HDMI_FC_AUDICONF0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dw_hdmi_set_channel_count      ; -- Begin function dw_hdmi_set_channel_count
	.p2align	2
_dw_hdmi_set_channel_count:             ; @dw_hdmi_set_channel_count
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT0@GOTPAGEOFF]
	cmp	w19, #2
	csel	x8, x8, x9, hi
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _HDMI_FC_AUDSCONF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HDMI_FC_AUDSCONF@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_hdmi_modb
	sub	w8, w19, #1
Lloh10:
	adrp	x9, _HDMI_FC_AUDICONF0_CC_OFFSET@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HDMI_FC_AUDICONF0_CC_OFFSET@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	lsl	w1, w8, w9
Lloh13:
	adrp	x8, _HDMI_FC_AUDICONF0_CC_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HDMI_FC_AUDICONF0_CC_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _HDMI_FC_AUDICONF0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HDMI_FC_AUDICONF0@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_hdmi_modb
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT1,4,2 ; @HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT1
	.comm	_HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT0,4,2 ; @HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_LAYOUT0
	.comm	_HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_MASK,4,2 ; @HDMI_FC_AUDSCONF_AUD_PACKET_LAYOUT_MASK
	.comm	_HDMI_FC_AUDSCONF,4,2           ; @HDMI_FC_AUDSCONF
	.comm	_HDMI_FC_AUDICONF0_CC_OFFSET,4,2 ; @HDMI_FC_AUDICONF0_CC_OFFSET
	.comm	_HDMI_FC_AUDICONF0_CC_MASK,4,2  ; @HDMI_FC_AUDICONF0_CC_MASK
	.comm	_HDMI_FC_AUDICONF0,4,2          ; @HDMI_FC_AUDICONF0
.subsections_via_symbols
