	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_mixer_oss_put_recsrc2
_snd_mixer_oss_put_recsrc2:             ## @snd_mixer_oss_put_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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	8(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_down_read
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_mixer_oss_test_id
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	*(%rax)
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_19
## %bb.6:
	movl	(%r14), %ecx
	movq	_SNDRV_MIXER_OSS_SIGNATURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_SNDRV_MIXER_OSS_PRESENT_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	cmpq	$32, %rdi
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	btl	%edi, %ecx
	jae	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rdi,8), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%esi, 8(%rax)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rdi, %r8
	jne	LBB0_11
	jmp	LBB0_14
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_20
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_13:
	testq	%rax, %rax
	je	LBB0_19
LBB0_14:
	cmpl	$0, (%r15)
	je	LBB0_17
## %bb.15:
	movq	8(%rbx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%rax), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movl	(%r15), %esi
	cmpq	%rsi, %rdx
	jb	LBB0_16
LBB0_17:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*8(%r14)
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_19
## %bb.18:
	movq	(%r12), %rdi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$16, %r14
	movq	%r14, %rdx
	callq	_snd_ctl_notify
LBB0_19:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_up_read
LBB0_20:
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	movl	%r13d, %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
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ## @SNDRV_CTL_EVENT_MASK_VALUE
	.no_dead_strip	_snd_mixer_oss_put_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_put_recsrc2
_snd_mixer_oss_put_recsrc2:             ; @snd_mixer_oss_put_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	x26, x1
	mov	x22, x0
	ldp	x20, x24, [x0]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #16
	bl	_kzalloc
	mov	x19, x0
	ldr	w1, [x21]
	mov	w0, #16
	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	w25, w8
	b	LBB0_20
LBB0_2:
	mov	x0, x20
	bl	_down_read
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	w2, #0
	bl	_snd_mixer_oss_test_id
	cbz	x0, LBB0_11
; %bb.3:
	mov	x23, x0
	ldr	x8, [x0]
	mov	x1, x19
	blr	x8
	mov	x25, x0
	tbnz	w0, #31, LBB0_19
; %bb.4:
	mov	x9, #0
	mov	x8, #0
Lloh7:
	adrp	x11, _SNDRV_MIXER_OSS_SIGNATURE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _SNDRV_MIXER_OSS_SIGNATURE@GOTPAGEOFF]
	ldr	w10, [x24]
Lloh9:
	ldr	x11, [x11]
Lloh10:
	adrp	x12, _SNDRV_MIXER_OSS_PRESENT_CAPTURE@GOTPAGE
Lloh11:
	ldr	x12, [x12, _SNDRV_MIXER_OSS_PRESENT_CAPTURE@GOTPAGEOFF]
Lloh12:
	ldr	w12, [x12]
	mov	w13, w26
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, #0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #1
	cmp	x9, #32
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w14, w10, w9
	tbz	w14, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x14, [x8]
	cmp	x14, x11
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x8, #8]
	tst	w12, w14
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x13, x9
	b.ne	LBB0_5
	b	LBB0_13
LBB0_11:
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_19
LBB0_12:
	cbz	x8, LBB0_19
LBB0_13:
	ldr	w9, [x19]
	cbz	w9, LBB0_16
; %bb.14:
	mov	x9, #0
	ldr	x10, [x21, #8]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, #12]
	str	w11, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldr	w11, [x19]
	cmp	x9, x11
	b.lo	LBB0_15
LBB0_16:
	ldr	x8, [x23, #8]
	mov	x0, x23
	mov	x1, x21
	blr	x8
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.17:
	ldr	x0, [x22]
Lloh16:
	adrp	x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, x23, #16
	bl	_snd_ctl_notify
LBB0_18:
	mov	w25, #0
LBB0_19:
	mov	x0, x20
	bl	_up_read
LBB0_20:
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	x0, x25
	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
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ; @SNDRV_CTL_EVENT_MASK_VALUE
	.no_dead_strip	_snd_mixer_oss_put_recsrc2
.subsections_via_symbols
