	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simple_playback_build_pcms
_simple_playback_build_pcms:            ## @simple_playback_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, %r15
	movq	16(%rdi), %r13
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_get_cvt
	movq	%rax, %r12
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_get_wcaps
	movl	%eax, %edi
	callq	_get_wcaps_channels
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	8(%r13), %rdi
	callq	_snd_array_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_get_pin
	movl	(%rax), %edi
	movl	%edi, 12(%rbx)
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movq	_HDA_PCM_TYPE_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r13), %rdx
	movq	%rdx, (%rax,%rcx,8)
	movl	(%r12), %esi
	movl	%esi, 4(%rax,%rcx,8)
	cmpl	$2, %edx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jg	LBB0_6
## %bb.3:
	testl	%edx, %edx
	je	LBB0_6
## %bb.4:
	cmpl	$16, %edx
	ja	LBB0_6
## %bb.5:
	movl	%edx, (%rax,%rcx,8)
LBB0_6:
	movl	$1, (%r15)
	movq	%rbx, 8(%r15)
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDMI 0"

	.comm	_HDA_PCM_TYPE_HDMI,4,2          ## @HDA_PCM_TYPE_HDMI
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_simple_playback_build_pcms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simple_playback_build_pcms
_simple_playback_build_pcms:            ; @simple_playback_build_pcms
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	mov	w1, #0
	bl	_get_cvt
	mov	x21, x0
	ldr	w1, [x0]
	mov	x0, x19
	bl	_get_wcaps
	bl	_get_wcaps_channels
	mov	x22, x0
	add	x0, x20, #8
	bl	_snd_array_new
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	mov	x0, x20
	mov	w1, #0
	bl	_get_pin
	ldr	w0, [x0]
	str	w0, [x23, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
Lloh2:
	adrp	x8, _HDA_PCM_TYPE_HDMI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDA_PCM_TYPE_HDMI@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	ldr	x8, [x23]
Lloh5:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #3
	ldr	x9, [x20]
	str	x9, [x8]
	ldr	w10, [x21]
	str	w10, [x8, #4]
	cmp	w9, #2
	ccmp	w22, #0, #4, le
	ccmp	w22, #16, #2, ne
	b.hi	LBB0_3
; %bb.2:
	str	w22, [x8]
LBB0_3:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	str	x23, [x19, #8]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDMI 0"

	.comm	_HDA_PCM_TYPE_HDMI,4,2          ; @HDA_PCM_TYPE_HDMI
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_simple_playback_build_pcms
.subsections_via_symbols
