	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detect_usb_format
_detect_usb_format:                     ## @detect_usb_format
	.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	%rdi, %r14
	movq	40(%rdi), %rax
	movq	_INTF_CAPTURE@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_find_format_descriptor
	movq	%rax, %rbx
	movq	40(%r14), %rax
	movq	_INTF_PLAYBACK@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_find_format_descriptor
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	(%rbx), %eax
	cmpl	$3, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$4, %eax
	jne	LBB0_14
## %bb.4:
	movq	_SNDRV_PCM_FMTBIT_S32_LE@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_6:
	movq	_SNDRV_PCM_FMTBIT_S24_3LE@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, 72(%r14)
	cmpl	(%r15), %eax
	jne	LBB0_15
## %bb.8:
	cmpl	$24, 4(%rbx)
	jne	LBB0_16
## %bb.9:
	cmpl	$24, 4(%r15)
	jne	LBB0_16
## %bb.10:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_combine_triple
	movl	%eax, (%r14)
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_combine_triple
	movl	(%r14), %ecx
	movq	32(%r14), %rdi
	cmpl	%eax, %ecx
	jne	LBB0_22
## %bb.11:
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_23
## %bb.12:
	cmpl	$128, %eax
	jne	LBB0_27
## %bb.13:
	movl	$8000, %eax                     ## imm = 0x1F40
	jmp	LBB0_24
LBB0_14:
	movq	32(%r14), %rdi
	addq	$4, %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_17
LBB0_15:
	movq	32(%r14), %rdi
	addq	$4, %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_16:
	movq	32(%r14), %rdi
	addq	$4, %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_19:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_20:
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	addq	$4, %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_23:
	movl	$1000, %eax                     ## imm = 0x3E8
LBB0_24:
	movl	%eax, 4(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 48(%r14)
	movl	8(%r15), %ecx
	movl	%ecx, 8(%r14)
	imull	(%rbx), %eax
	movl	%eax, 52(%r14)
	imull	(%r15), %ecx
	movl	%ecx, 12(%r14)
	movq	40(%r14), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rbx
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_isoc_in
	movq	32(%r14), %r15
	testl	%eax, %eax
	je	LBB0_28
## %bb.25:
	movq	%rbx, %rdi
	callq	_usb_endpoint_num
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_usb_rcvisocpipe
	movl	%eax, 64(%r14)
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 56(%r14)
	movq	40(%r14), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rbx
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_isoc_out
	movq	32(%r14), %r15
	testl	%eax, %eax
	je	LBB0_29
## %bb.26:
	movq	%rbx, %rdi
	callq	_usb_endpoint_num
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_usb_sndisocpipe
	movl	%eax, 24(%r14)
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 16(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_27:
	addq	$4, %rdi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_17
LBB0_28:
	addq	$4, %r15
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_30
LBB0_29:
	addq	$4, %r15
	leaq	L_.str.6(%rip), %rsi
LBB0_30:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_INTF_CAPTURE,8,3               ## @INTF_CAPTURE
	.comm	_INTF_PLAYBACK,8,3              ## @INTF_PLAYBACK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SNDRV_PCM_FMTBIT_S24_3LE,4,2   ## @SNDRV_PCM_FMTBIT_S24_3LE
	.comm	_SNDRV_PCM_FMTBIT_S32_LE,4,2    ## @SNDRV_PCM_FMTBIT_S32_LE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sample width is not 24 or 32 bits\n"

L_.str.1:                               ## @.str.1
	.asciz	"playback/capture sample widths do not match\n"

L_.str.2:                               ## @.str.2
	.asciz	"sample width is not 24 bits\n"

L_.str.3:                               ## @.str.3
	.asciz	"playback/capture rates do not match: %u/%u\n"

L_.str.4:                               ## @.str.4
	.asciz	"unknown device speed\n"

L_.str.5:                               ## @.str.5
	.asciz	"invalid capture endpoint\n"

L_.str.6:                               ## @.str.6
	.asciz	"invalid playback endpoint\n"

	.no_dead_strip	_detect_usb_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detect_usb_format
_detect_usb_format:                     ; @detect_usb_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x8, [x0, #40]
Lloh0:
	adrp	x23, _INTF_CAPTURE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INTF_CAPTURE@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x0, [x8, x9, lsl #3]
	bl	_find_format_descriptor
	mov	x20, x0
	ldr	x8, [x19, #40]
Lloh2:
	adrp	x22, _INTF_PLAYBACK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _INTF_PLAYBACK@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	bl	_find_format_descriptor
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_16
; %bb.1:
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #3
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #4
	b.ne	LBB0_12
; %bb.3:
Lloh4:
	adrp	x9, _SNDRV_PCM_FMTBIT_S32_LE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SNDRV_PCM_FMTBIT_S32_LE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x9, _SNDRV_PCM_FMTBIT_S24_3LE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SNDRV_PCM_FMTBIT_S24_3LE@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	str	w9, [x19, #72]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.6:
	ldr	w8, [x20, #4]
	cmp	w8, #24
	b.ne	LBB0_14
; %bb.7:
	ldr	w8, [x21, #4]
	cmp	w8, #24
	b.ne	LBB0_14
; %bb.8:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_combine_triple
	str	w0, [x19]
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_combine_triple
	ldr	w9, [x19]
	ldr	x8, [x19, #32]
	cmp	w9, w0
	b.ne	LBB0_18
; %bb.9:
	ldr	w9, [x8]
	cmp	w9, #129
	b.eq	LBB0_19
; %bb.10:
	cmp	w9, #128
	b.ne	LBB0_23
; %bb.11:
	mov	w8, #8000
	b	LBB0_20
LBB0_12:
	ldr	x8, [x19, #32]
	add	x0, x8, #4
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_13:
	ldr	x8, [x19, #32]
	add	x0, x8, #4
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_14:
	ldr	x8, [x19, #32]
	add	x0, x8, #4
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	bl	_dev_err
LBB0_16:
Lloh14:
	adrp	x8, _ENXIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
	add	sp, sp, #80
	ret
LBB0_18:
	add	x8, x8, #4
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x0, x9, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	b	LBB0_15
LBB0_19:
	mov	w8, #1000
LBB0_20:
	ldr	w9, [x20, #8]
	ldr	w10, [x21, #8]
	stp	w8, w10, [x19, #4]
	ldr	w8, [x20]
	mul	w8, w8, w9
	stp	w9, w8, [x19, #48]
	ldr	w8, [x21]
	mul	w8, w8, w10
	str	w8, [x19, #12]
	ldr	x8, [x19, #40]
	ldr	x9, [x23]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	ldr	x20, [x8, #8]
	mov	x0, x20
	bl	_usb_endpoint_is_isoc_in
	ldr	x21, [x19, #32]
	cbz	w0, LBB0_24
; %bb.21:
	mov	x0, x20
	bl	_usb_endpoint_num
	mov	x1, x0
	mov	x0, x21
	bl	_usb_rcvisocpipe
	str	w0, [x19, #64]
	ldr	w0, [x20]
	bl	_le16_to_cpu
	str	x0, [x19, #56]
	ldr	x8, [x19, #40]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	ldr	x20, [x8, #8]
	mov	x0, x20
	bl	_usb_endpoint_is_isoc_out
	ldr	x21, [x19, #32]
	cbz	w0, LBB0_25
; %bb.22:
	mov	x0, x20
	bl	_usb_endpoint_num
	mov	x1, x0
	mov	x0, x21
	bl	_usb_sndisocpipe
	str	w0, [x19, #24]
	ldr	w0, [x20]
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #16]
	b	LBB0_17
LBB0_23:
	add	x0, x8, #4
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_24:
	add	x0, x21, #4
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_25:
	add	x0, x21, #4
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_15
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_INTF_CAPTURE,8,3               ; @INTF_CAPTURE
	.comm	_INTF_PLAYBACK,8,3              ; @INTF_PLAYBACK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SNDRV_PCM_FMTBIT_S24_3LE,4,2   ; @SNDRV_PCM_FMTBIT_S24_3LE
	.comm	_SNDRV_PCM_FMTBIT_S32_LE,4,2    ; @SNDRV_PCM_FMTBIT_S32_LE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sample width is not 24 or 32 bits\n"

l_.str.1:                               ; @.str.1
	.asciz	"playback/capture sample widths do not match\n"

l_.str.2:                               ; @.str.2
	.asciz	"sample width is not 24 bits\n"

l_.str.3:                               ; @.str.3
	.asciz	"playback/capture rates do not match: %u/%u\n"

l_.str.4:                               ; @.str.4
	.asciz	"unknown device speed\n"

l_.str.5:                               ; @.str.5
	.asciz	"invalid capture endpoint\n"

l_.str.6:                               ; @.str.6
	.asciz	"invalid playback endpoint\n"

	.no_dead_strip	_detect_usb_format
.subsections_via_symbols
