	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generic_hdmi_build_pcms
_generic_hdmi_build_pcms:               ## @generic_hdmi_build_pcms
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	leaq	4(%r12), %r15
	xorl	%ebx, %ebx
	movq	_generic_ops@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_get_pin
	movq	%rax, %r14
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movq	%r15, %rdi
	callq	_snd_array_new
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %ecx
	movl	%ecx, 12(%rax)
	movq	_HDA_PCM_TYPE_HDMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	(%rax), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,8)
	movl	(%r13), %edx
	movl	%edx, 4(%rax,%rcx,8)
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
LBB0_5:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	4(%r12), %eax
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDMI %d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HDA_PCM_TYPE_HDMI,4,2          ## @HDA_PCM_TYPE_HDMI
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_generic_ops,4,2                ## @generic_ops
	.no_dead_strip	_generic_hdmi_build_pcms
.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_pcms
_generic_hdmi_build_pcms:               ; @generic_hdmi_build_pcms
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w21, #0
Lloh0:
	adrp	x25, _HDA_PCM_TYPE_HDMI@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HDA_PCM_TYPE_HDMI@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
	add	x22, x20, #4
	mov	w27, #1
Lloh4:
	adrp	x28, _generic_ops@GOTPAGE
Lloh5:
	ldr	x28, [x28, _generic_ops@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_get_pin
	mov	x24, x0
	ldr	w0, [x0]
	mov	x1, x23
	mov	x2, x21
	bl	_sprintf
	mov	x0, x22
	bl	_snd_array_new
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	stp	w9, w8, [x0, #8]
	ldr	x8, [x0]
	ldr	x9, [x26]
	add	x8, x8, x9, lsl #3
	str	w27, [x8]
	ldr	w9, [x28]
	str	w9, [x8, #4]
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	ldr	w9, [x20, #4]
	stp	w8, w9, [x19]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDMI %d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HDA_PCM_TYPE_HDMI,4,2          ; @HDA_PCM_TYPE_HDMI
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_generic_ops,4,2                ; @generic_ops
	.no_dead_strip	_generic_hdmi_build_pcms
.subsections_via_symbols
