	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generic_hdmi_build_controls
_generic_hdmi_build_controls:           ## @generic_hdmi_build_controls
	.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	(%rdi), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_get_pin
	movq	%rax, %r12
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_generic_hdmi_build_jack
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %esi
	movq	(%r12), %rax
	movl	(%rax), %edx
	movq	_HDA_PCM_TYPE_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_snd_hda_create_dig_out_ctls
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_snd_hda_spdif_ctls_unassign
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_get_pcm_rec
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_hdmi_create_eld_ctl
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hdmi_present_sense
	incl	%r13d
	cmpl	(%r14), %r13d
	jl	LBB0_2
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_6:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_PCM_TYPE_HDMI,4,2          ## @HDA_PCM_TYPE_HDMI
	.no_dead_strip	_generic_hdmi_build_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generic_hdmi_build_controls
_generic_hdmi_build_controls:           ; @generic_hdmi_build_controls
	.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
	ldr	x20, [x0]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	w21, #0
Lloh0:
	adrp	x23, _HDA_PCM_TYPE_HDMI@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HDA_PCM_TYPE_HDMI@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_get_pin
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	_generic_hdmi_build_jack
	tbnz	w0, #31, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22, #8]
	ldr	x8, [x22]
	ldr	w2, [x8]
	ldr	w3, [x23]
	mov	x0, x19
	bl	_snd_hda_create_dig_out_ctls
	tbnz	w0, #31, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_snd_hda_spdif_ctls_unassign
	mov	x0, x20
	mov	x1, x21
	bl	_get_pcm_rec
	ldr	w2, [x0]
	mov	x0, x19
	mov	x1, x21
	bl	_hdmi_create_eld_ctl
	tbnz	w0, #31, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_hdmi_present_sense
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_6:
	mov	w0, #0
LBB0_7:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_PCM_TYPE_HDMI,4,2          ; @HDA_PCM_TYPE_HDMI
	.no_dead_strip	_generic_hdmi_build_controls
.subsections_via_symbols
