	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_mixer_oss_get_recsrc2
_snd_mixer_oss_get_recsrc2:             ## @snd_mixer_oss_get_recsrc2
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	8(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, %r14
	movl	(%rbx), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%r14, %r14
	je	LBB0_13
## %bb.1:
	testq	%r13, %r13
	je	LBB0_13
## %bb.2:
	movq	%r14, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_down_read
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_mixer_oss_test_id
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_14
## %bb.4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	*8(%r14)
	testl	%eax, %eax
	js	LBB0_14
## %bb.5:
	movl	(%r15), %eax
	movq	_SNDRV_MIXER_OSS_SIGNATURE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_SNDRV_MIXER_OSS_PRESENT_CAPTURE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	xorl	%edx, %edx
	movq	%rbx, %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	cmpq	$32, %rdx
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	btl	%edx, %eax
	jae	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rdi
	movq	(%rdi,%rdx,8), %rdi
	cmpq	%rcx, (%rdi)
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%esi, 8(%rdi)
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rdi), %rdi
	movq	(%r13), %rbx
	cmpq	(%rbx), %rdi
	jne	LBB0_6
## %bb.11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
LBB0_12:
	xorl	%r12d, %r12d
	jmp	LBB0_17
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_14:
	movl	%eax, %r12d
	jmp	LBB0_16
LBB0_15:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_16:
	movq	%rbx, %r14
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_up_read
LBB0_18:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movl	%r12d, %eax
	addq	$24, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Capture Source"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_SNDRV_MIXER_OSS_SIGNATURE,8,3  ## @SNDRV_MIXER_OSS_SIGNATURE
	.comm	_SNDRV_MIXER_OSS_PRESENT_CAPTURE,4,2 ## @SNDRV_MIXER_OSS_PRESENT_CAPTURE
	.no_dead_strip	_snd_mixer_oss_get_recsrc2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_mixer_oss_get_recsrc2
_snd_mixer_oss_get_recsrc2:             ; @snd_mixer_oss_get_recsrc2
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	ldp	x23, x20, [x0]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #8
	bl	_kzalloc
	mov	x19, x0
	ldr	w1, [x21]
	mov	w0, #8
	bl	_kzalloc
	mov	x21, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_2:
	mov	x0, x20
	bl	_down_read
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	w2, #0
	bl	_snd_mixer_oss_test_id
	cbz	x0, LBB0_13
; %bb.3:
	mov	x25, x0
	ldr	x8, [x0]
	mov	x1, x19
	blr	x8
	tbnz	w0, #31, LBB0_12
; %bb.4:
	ldr	x8, [x25, #8]
	mov	x0, x25
	mov	x1, x21
	blr	x8
	tbnz	w0, #31, LBB0_12
; %bb.5:
	mov	x8, #0
	ldr	w9, [x23]
Lloh7:
	adrp	x10, _SNDRV_MIXER_OSS_SIGNATURE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SNDRV_MIXER_OSS_SIGNATURE@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
Lloh10:
	adrp	x11, _SNDRV_MIXER_OSS_PRESENT_CAPTURE@GOTPAGE
Lloh11:
	ldr	x11, [x11, _SNDRV_MIXER_OSS_PRESENT_CAPTURE@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	cmp	x8, #32
	b.eq	LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w12, w9, w8
	tbz	w12, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x12, [x23, #8]
	ldr	x12, [x12, x8, lsl #3]
	ldr	x13, [x12]
	cmp	x13, x10
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w13, [x12, #8]
	tst	w11, w13
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x12, [x12, #16]
	ldr	x13, [x21]
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_6
; %bb.11:
	mov	w24, #0
	str	w8, [x22]
	b	LBB0_15
LBB0_12:
	mov	x24, x0
	b	LBB0_15
LBB0_13:
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_14:
	mov	w24, #0
LBB0_15:
	mov	x0, x20
	bl	_up_read
LBB0_16:
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Capture Source"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_SNDRV_MIXER_OSS_SIGNATURE,8,3  ; @SNDRV_MIXER_OSS_SIGNATURE
	.comm	_SNDRV_MIXER_OSS_PRESENT_CAPTURE,4,2 ; @SNDRV_MIXER_OSS_PRESENT_CAPTURE
	.no_dead_strip	_snd_mixer_oss_get_recsrc2
.subsections_via_symbols
