	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_rme9652_put_thru
_snd_rme9652_put_thru:                  ## @snd_rme9652_put_thru
	.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, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_snd_rme9652_use_is_exclusive
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%r14, %r15
	movl	(%r14), %r8d
	testq	%r8, %r8
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %r10
	leaq	-1(%r8), %rax
	movl	%r8d, %esi
	andl	$3, %esi
	cmpq	$3, %rax
	jae	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_6:
	andl	$-4, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	cmpq	$0, (%r10,%rax,8)
	cmovel	%r9d, %edi
	leal	1(%rax), %ecx
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%r12d, %edi
	cmpq	$0, 8(%r10,%rax,8)
	cmovel	%r9d, %ebx
	leal	2(%rax), %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	cmpq	$0, 16(%r10,%rax,8)
	cmovel	%r9d, %edx
	orl	%ebx, %edx
	orl	%edi, %edx
	leal	3(%rax), %ecx
	movl	$1, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	cmpq	$0, 24(%r10,%rax,8)
	cmovel	%r9d, %r12d
	orl	%edx, %r12d
	addq	$4, %rax
	cmpq	%r8, %rax
	jne	LBB0_7
LBB0_8:
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.9:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	cmpq	$0, (%r10,%rax,8)
	cmovel	%edi, %edx
	orl	%edx, %r12d
	incq	%rax
	decq	%rsi
	jne	LBB0_10
LBB0_11:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	4(%r15), %r13d
	xorl	%r12d, %r13d
	je	LBB0_17
## %bb.12:
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jae	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	btl	%ebx, %r13d
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	andl	%r12d, %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rme9652_set_thru
	movl	(%r15), %eax
	jmp	LBB0_16
LBB0_17:
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	setne	%bl
	movq	%r14, %rdi
	callq	_spin_unlock_irq
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_snd_rme9652_put_thru
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function snd_rme9652_put_thru
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_snd_rme9652_put_thru:                  ; @snd_rme9652_put_thru
	.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, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	bl	_snd_rme9652_use_is_exclusive
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x9, [x20]
	cmp	w8, #8
	b.hs	LBB0_6
; %bb.3:
	mov	x10, #0
	mov	w22, #0
	b	LBB0_9
LBB0_4:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_18
LBB0_5:
	mov	w22, #0
	b	LBB0_11
LBB0_6:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	movi.2s	v1, #2
	movi.2s	v2, #4
Lloh3:
	adrp	x11, lCPI0_0@PAGE
Lloh4:
	ldr	d3, [x11, lCPI0_0@PAGEOFF]
	add	x11, x9, #32
	movi.2s	v4, #6
	movi.2s	v5, #1
	movi.2s	v6, #8
	mov	x12, x10
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add.2s	v18, v3, v1
	add.2s	v19, v3, v2
	add.2s	v20, v3, v4
	ldp	q21, q22, [x11, #-32]
	ldp	q23, q24, [x11], #64
	cmeq.2d	v21, v21, #0
	xtn.2s	v21, v21
	cmeq.2d	v22, v22, #0
	xtn.2s	v22, v22
	cmeq.2d	v23, v23, #0
	xtn.2s	v23, v23
	cmeq.2d	v24, v24, #0
	xtn.2s	v24, v24
	ushl.2s	v25, v5, v3
	ushl.2s	v18, v5, v18
	ushl.2s	v19, v5, v19
	ushl.2s	v20, v5, v20
	bic.8b	v21, v25, v21
	bic.8b	v18, v18, v22
	bic.8b	v19, v19, v23
	bic.8b	v20, v20, v24
	orr.8b	v0, v21, v0
	orr.8b	v7, v18, v7
	orr.8b	v16, v19, v16
	orr.8b	v17, v20, v17
	add.2s	v3, v3, v6
	subs	x12, x12, #8
	b.ne	LBB0_7
; %bb.8:
	orr.8b	v0, v7, v0
	orr.8b	v0, v16, v0
	orr.8b	v0, v17, v0
	mov.s	w11, v0[1]
	fmov	w12, s0
	orr	w22, w12, w11
	cmp	x10, x8
	b.eq	LBB0_11
LBB0_9:
	mov	w11, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x10, lsl #3]
	lsl	w13, w11, w10
	cmp	x12, #0
	csel	w12, wzr, w13, eq
	orr	w22, w12, w22
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_10
LBB0_11:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w8, [x19, #4]
	eor	w23, w8, w22
	cbz	w23, LBB0_17
; %bb.12:
	ldr	w8, [x19]
	cbz	w8, LBB0_17
; %bb.13:
	mov	w21, #0
	mov	w24, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.hs	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	lsl	w9, w24, w21
	tst	w9, w23
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	and	w2, w9, w22
	mov	x0, x19
	mov	x1, x21
	bl	_rme9652_set_thru
	ldr	w8, [x19]
	b	LBB0_14
LBB0_17:
	cmp	w23, #0
	cset	w19, ne
	mov	x0, x20
	bl	_spin_unlock_irq
LBB0_18:
	mov	x0, x19
	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 AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_snd_rme9652_put_thru
.subsections_via_symbols
