	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ctl_elem_read
_snd_ctl_elem_read:                     ## @snd_ctl_elem_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_down_read
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snd_ctl_find_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_snd_ctl_get_ioff
	movq	8(%rbx), %rcx
	movl	%eax, %edx
	movq	_SNDRV_CTL_ELEM_ACCESS_READ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rcx,%rdx,4)
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_snd_ctl_build_ioff
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rbx)
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_up_read
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_SNDRV_CTL_ELEM_ACCESS_READ,4,2 ## @SNDRV_CTL_ELEM_ACCESS_READ
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_snd_ctl_elem_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ctl_elem_read
_snd_ctl_elem_read:                     ; @snd_ctl_elem_read
	.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	x20, x1
	mov	x19, x0
	bl	_down_read
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ctl_find_id
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x1, x20
	bl	_snd_ctl_get_ioff
	ldr	x8, [x21, #8]
	ldr	w8, [x8, w0, uxtw #2]
Lloh0:
	adrp	x9, _SNDRV_CTL_ELEM_ACCESS_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_CTL_ELEM_ACCESS_READ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_snd_ctl_build_ioff
	ldr	x8, [x21]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	mov	x20, x0
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x19
	bl	_up_read
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_SNDRV_CTL_ELEM_ACCESS_READ,4,2 ; @SNDRV_CTL_ELEM_ACCESS_READ
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_snd_ctl_elem_read
.subsections_via_symbols
