	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_eld_ctl_get
_hdmi_eld_ctl_get:                      ## @hdmi_eld_ctl_get
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	(%rax), %rdi
	movl	(%rbx), %esi
	callq	_get_pin
	movq	%rax, %rbx
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%rbx), %r12
	movl	(%r14), %edi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r12
	jle	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_snd_BUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_5
LBB0_2:
	movl	(%r14), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	xorl	%r12d, %r12d
	movl	%r13d, %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_memset
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	movl	12(%rbx), %esi
	movq	(%rbx), %rdx
	callq	_memcpy
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hdmi_eld_ctl_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_eld_ctl_get
_hdmi_eld_ctl_get:                      ; @hdmi_eld_ctl_get
	.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
	bl	_snd_kcontrol_chip
	ldr	x0, [x0]
	ldr	w1, [x20]
	bl	_get_pin
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x22, [x21]
	ldr	w0, [x19]
	bl	_ARRAY_SIZE
	cmp	x22, x0
	b.le	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_mutex_unlock
	bl	_snd_BUG
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	ldr	w22, [x19]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x22
	mov	w1, #0
	bl	_memset
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	ldr	w1, [x21, #12]
	ldr	x2, [x21]
	bl	_memcpy
LBB0_4:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hdmi_eld_ctl_get
.subsections_via_symbols
