	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_format_descriptor
_find_format_descriptor:                ## @find_format_descriptor
	.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, %r15
	cmpl	$2, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	8(%r15), %rax
	leaq	L_.str.1(%rip), %r14
	cmpl	$0, 16(%rax)
	jne	LBB0_14
## %bb.3:
	cmpl	$1, 40(%rax)
	jne	LBB0_14
## %bb.4:
	movl	24(%rax), %r12d
	leaq	L_.str.4(%rip), %r14
	cmpl	$4, %r12d
	jb	LBB0_14
## %bb.5:
	movq	32(%rax), %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%rbx), %rax
	subl	%eax, %r12d
	leaq	(%rbx,%rax,4), %rbx
	cmpl	$3, %r12d
	jbe	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r13d
	cmpl	%r12d, %r13d
	jg	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	callq	_UAC_FORMAT_TYPE_I_DISCRETE_DESC_SIZE
	cmpl	%eax, %r13d
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rax
	movq	_USB_DT_CS_INTERFACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rax
	movq	_UAC_FORMAT_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	24(%rbx), %rax
	movq	_UAC_FORMAT_TYPE_I_PCM@GOTPCREL(%rip), %rcx
	leaq	L_.str.3(%rip), %r14
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:
	cmpl	$1, 32(%rbx)
	jne	LBB0_14
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %r14
LBB0_14:
	addq	$4, %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dev_err
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.2(%rip), %r14
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid num_altsetting\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid bNumEndpoints\n"

L_.str.2:                               ## @.str.2
	.asciz	"descriptor overflow\n"

	.comm	_USB_DT_CS_INTERFACE,8,3        ## @USB_DT_CS_INTERFACE
	.comm	_UAC_FORMAT_TYPE,8,3            ## @UAC_FORMAT_TYPE
	.comm	_UAC_FORMAT_TYPE_I_PCM,8,3      ## @UAC_FORMAT_TYPE_I_PCM
L_.str.3:                               ## @.str.3
	.asciz	"invalid format type\n"

L_.str.4:                               ## @.str.4
	.asciz	"sample format descriptor not found\n"

	.no_dead_strip	_find_format_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_format_descriptor
_find_format_descriptor:                ; @find_format_descriptor
	.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	x19, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_13
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #16]
	cbnz	w9, LBB0_14
; %bb.2:
	ldr	w9, [x8, #40]
	cmp	w9, #1
	b.ne	LBB0_14
; %bb.3:
	ldr	w22, [x8, #24]
	cmp	w22, #4
	b.lo	LBB0_17
; %bb.4:
	ldr	x21, [x8, #32]
Lloh0:
	adrp	x23, l_.str.2@PAGE
Lloh1:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh2:
	adrp	x24, _USB_DT_CS_INTERFACE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _USB_DT_CS_INTERFACE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _UAC_FORMAT_TYPE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _UAC_FORMAT_TYPE@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.4@PAGE
Lloh7:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x21]
	sub	w22, w22, w8
	add	x21, x21, x8, lsl #2
	cmp	w22, #3
	b.ls	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x21]
	cmp	w26, w22
	b.gt	LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_UAC_FORMAT_TYPE_I_DISCRETE_DESC_SIZE
	cmp	w26, w0
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #16]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.10:
	ldr	x8, [x21, #24]
Lloh8:
	adrp	x9, _UAC_FORMAT_TYPE_I_PCM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UAC_FORMAT_TYPE_I_PCM@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x21, #32]
	cmp	w8, #1
	b.eq	LBB0_16
LBB0_12:
Lloh11:
	adrp	x20, l_.str.3@PAGE
Lloh12:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_13:
Lloh13:
	adrp	x20, l_.str@PAGE
Lloh14:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh15:
	adrp	x20, l_.str.1@PAGE
Lloh16:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_15:
	add	x0, x19, #4
	mov	x1, x20
	bl	_dev_err
	mov	x21, #0
LBB0_16:
	mov	x0, x21
	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
LBB0_17:
Lloh17:
	adrp	x20, l_.str.4@PAGE
Lloh18:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_18:
	mov	x20, x23
	b	LBB0_15
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid num_altsetting\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid bNumEndpoints\n"

l_.str.2:                               ; @.str.2
	.asciz	"descriptor overflow\n"

	.comm	_USB_DT_CS_INTERFACE,8,3        ; @USB_DT_CS_INTERFACE
	.comm	_UAC_FORMAT_TYPE,8,3            ; @UAC_FORMAT_TYPE
	.comm	_UAC_FORMAT_TYPE_I_PCM,8,3      ; @UAC_FORMAT_TYPE_I_PCM
l_.str.3:                               ; @.str.3
	.asciz	"invalid format type\n"

l_.str.4:                               ; @.str.4
	.asciz	"sample format descriptor not found\n"

	.no_dead_strip	_find_format_descriptor
.subsections_via_symbols
