	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audio_config_hdmi_get_n
_audio_config_hdmi_get_n:               ## @audio_config_hdmi_get_n
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	(%rdi), %ecx
	cmpl	$30, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_hdmi_aud_ncts_30bpp@GOTPCREL(%rip), %rax
	cmpl	$36, %ecx
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_hdmi_aud_ncts_24bpp@GOTPCREL(%rip), %rax
	cmpl	$36, %ecx
	jne	LBB0_5
LBB0_4:
	movq	_hdmi_aud_ncts_36bpp@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.6:
	movl	%eax, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rcx
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$24, %rax
	cmpq	%rax, %rcx
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%rbx,%rax)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r14), %rdx
	cmpq	8(%rbx,%rax), %rdx
	jne	LBB0_10
## %bb.9:
	movl	16(%rbx,%rax), %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hdmi_aud_ncts_36bpp,8,3        ## @hdmi_aud_ncts_36bpp
	.comm	_hdmi_aud_ncts_30bpp,8,3        ## @hdmi_aud_ncts_30bpp
	.comm	_hdmi_aud_ncts_24bpp,8,3        ## @hdmi_aud_ncts_24bpp
	.no_dead_strip	_audio_config_hdmi_get_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audio_config_hdmi_get_n
_audio_config_hdmi_get_n:               ; @audio_config_hdmi_get_n
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _hdmi_aud_ncts_36bpp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hdmi_aud_ncts_36bpp@GOTPAGEOFF]
Lloh2:
	adrp	x9, _hdmi_aud_ncts_30bpp@GOTPAGE
Lloh3:
	ldr	x9, [x9, _hdmi_aud_ncts_30bpp@GOTPAGEOFF]
Lloh4:
	adrp	x10, _hdmi_aud_ncts_24bpp@GOTPAGE
Lloh5:
	ldr	x10, [x10, _hdmi_aud_ncts_24bpp@GOTPAGEOFF]
	ldr	w11, [x0]
	cmp	w11, #30
	csel	x9, x9, x10, eq
	cmp	w11, #36
	csel	x8, x8, x9, eq
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w8, w0
	add	x9, x21, #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-16]
	cmp	w10, w19
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x20, #8]
	ldur	x11, [x9, #-8]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.5:
	ldr	w0, [x9]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hdmi_aud_ncts_36bpp,8,3        ; @hdmi_aud_ncts_36bpp
	.comm	_hdmi_aud_ncts_30bpp,8,3        ; @hdmi_aud_ncts_30bpp
	.comm	_hdmi_aud_ncts_24bpp,8,3        ; @hdmi_aud_ncts_24bpp
	.no_dead_strip	_audio_config_hdmi_get_n
.subsections_via_symbols
