	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_simple_hdmi
_patch_simple_hdmi:                     ## @patch_simple_hdmi
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_hdmi_array_init
	movq	$0, 40(%rbx)
	movl	$2, 24(%rbx)
	movq	%r15, 32(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	leaq	16(%rbx), %rdi
	callq	_snd_array_new
	movq	%rax, %r13
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_snd_array_new
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, (%rax)
	movq	%r14, (%r13)
	movq	_simple_pcm_playback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_simple_hdmi_patch_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	%r12, %rdi
	callq	_simple_playback_free
LBB0_1:
	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
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_simple_pcm_playback,4,2        ## @simple_pcm_playback
	.comm	_simple_hdmi_patch_ops,4,2      ## @simple_hdmi_patch_ops
	.no_dead_strip	_patch_simple_hdmi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_simple_hdmi
_patch_simple_hdmi:                     ; @patch_simple_hdmi
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	str	x0, [x19, #8]
	mov	w1, #1
	bl	_hdmi_array_init
	mov	w8, #2
	str	w8, [x22, #24]
	stp	x21, xzr, [x22, #32]
	movi.2s	v0, #1
	str	d0, [x22]
	add	x0, x22, #16
	bl	_snd_array_new
	mov	x23, x0
	add	x0, x22, #12
	bl	_snd_array_new
	cmp	x23, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_simple_playback_free
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	x8, x0
	mov	w0, #0
	str	x21, [x8]
	str	x20, [x23]
Lloh6:
	adrp	x8, _simple_pcm_playback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _simple_pcm_playback@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x22, #8]
Lloh9:
	adrp	x8, _simple_hdmi_patch_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _simple_hdmi_patch_ops@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_simple_pcm_playback,4,2        ; @simple_pcm_playback
	.comm	_simple_hdmi_patch_ops,4,2      ; @simple_hdmi_patch_ops
	.no_dead_strip	_patch_simple_hdmi
.subsections_via_symbols
