	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb6fire_pcm_capture
_usb6fire_pcm_capture:                  ## @usb6fire_pcm_capture
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rdi), %rdi
	callq	_snd_pcm_substream_chip
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PCM_N_PACKETS_PER_URB@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_15
## %bb.1:
	movq	%rbx, %r10
	movq	8(%r13), %rax
	movq	(%rax), %r12
	movq	24(%r12), %rax
	movl	(%r12), %ecx
	movl	8(%r12), %edx
	sarl	$3, %ecx
	movslq	4(%r12), %rsi
	movslq	%ecx, %rcx
	imulq	%rcx, %rsi
	addq	%rax, %rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	shll	$2, %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movslq	(%r13), %rbx
	imulq	%rcx, %rbx
	addq	%rax, %rbx
	xorl	%ecx, %ecx
	xorl	%r11d, %r11d
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_PCM_N_PACKETS_PER_URB@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	movslq	%r8d, %rax
	movl	%edx, %r11d
	cmpq	%rax, %rcx
	jge	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	8(%r10), %r9
	movq	%rcx, %rsi
	shlq	$4, %rsi
	movl	(%r9,%rsi), %eax
	movl	$0, %r14d
	cmpl	$5, %eax
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$-4, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %edi
	shll	$2, %edi
	cltd
	idivl	%edi
	movl	%eax, %r14d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movq	_SNDRV_PCM_FORMAT_S24_LE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r10), %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SNDRV_PCM_FORMAT_S32_LE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r10), %r15d
	decl	%r15d
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r9,%rsi), %edx
	addl	%r11d, %edx
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	addl	%r11d, %r15d
	addq	$4, %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	leaq	(%r15,%rax,4), %r15
	decl	%r14d
	je	LBB0_13
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movslq	8(%r12), %rax
	leaq	(%rbx,%rax,4), %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	incl	(%r13)
	incl	4(%r13)
	cmpq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	$0, (%r13)
	movq	24(%r12), %rbx
	jmp	LBB0_12
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCM_N_PACKETS_PER_URB,4,2      ## @PCM_N_PACKETS_PER_URB
	.comm	_SNDRV_PCM_FORMAT_S24_LE,8,3    ## @SNDRV_PCM_FORMAT_S24_LE
	.comm	_SNDRV_PCM_FORMAT_S32_LE,8,3    ## @SNDRV_PCM_FORMAT_S32_LE
	.no_dead_strip	_usb6fire_pcm_capture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb6fire_pcm_capture
_usb6fire_pcm_capture:                  ; @usb6fire_pcm_capture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x24, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_snd_pcm_substream_chip
Lloh0:
	adrp	x8, _PCM_N_PACKETS_PER_URB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCM_N_PACKETS_PER_URB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x21, x0
	mov	x26, #0
	mov	w27, #0
	ldr	x9, [x20, #8]
	ldr	x28, [x9]
	ldr	x9, [x28, #24]
	ldp	w10, w11, [x28]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	asr	w12, w10, #3
	sbfx	x10, x10, #3, #29
	madd	x25, x11, x10, x9
	ldr	w10, [x28, #8]
	lsl	w22, w10, #2
	ldrsw	x10, [x20]
	sxtw	x11, w12
	madd	x23, x11, x10, x9
	movi.2s	v8, #1
	str	x24, [sp]                       ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh3:
	adrp	x8, _PCM_N_PACKETS_PER_URB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCM_N_PACKETS_PER_URB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x24, [sp]                       ; 8-byte Folded Reload
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, w9
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x9, [x24, #8]
	lsl	x10, x26, #4
	ldr	w10, [x9, x10]
	cmp	w10, #5
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w10, w10, #4
	ldr	w11, [x21]
	lsl	w11, w11, #2
	sdiv	w19, w10, w11
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w19, #0
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x28, #16]
Lloh6:
	adrp	x11, _SNDRV_PCM_FORMAT_S24_LE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SNDRV_PCM_FORMAT_S24_LE@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x24]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x11, _SNDRV_PCM_FORMAT_S32_LE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SNDRV_PCM_FORMAT_S32_LE@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x24]
	sub	w10, w10, #1
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, x26, lsl #4
	ldr	w9, [x9, #8]
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	add	w8, w10, w27
	add	x24, x8, #4
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x24, x24, x8, lsl #2
	subs	w19, w19, #1
	b.eq	LBB0_2
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_memcpy
	ldrsw	x8, [x28, #8]
	add	x23, x23, x8, lsl #2
	ldrsw	x8, [x21]
	ldr	d0, [x20]
	add.2s	v0, v0, v8
	str	d0, [x20]
	cmp	x23, x25
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	str	wzr, [x20]
	ldr	x23, [x28, #24]
	b	LBB0_13
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCM_N_PACKETS_PER_URB,4,2      ; @PCM_N_PACKETS_PER_URB
	.comm	_SNDRV_PCM_FORMAT_S24_LE,8,3    ; @SNDRV_PCM_FORMAT_S24_LE
	.comm	_SNDRV_PCM_FORMAT_S32_LE,8,3    ; @SNDRV_PCM_FORMAT_S32_LE
	.no_dead_strip	_usb6fire_pcm_capture
.subsections_via_symbols
