	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_isoc_init
_sd_isoc_init:                          ## @sd_isoc_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	24(%rdi), %rax
	movslq	16(%rdi), %rcx
	movq	_MODE_RAW@GOTPCREL(%rip), %rdx
	movq	_MODE_JPEG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%esi, (%rax,%rcx,4)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %esi
	movl	12(%rdi), %edi
	callq	_usb_ifnum_to_if
	movl	(%rax), %esi
	cmpl	$9, %esi
	jne	LBB0_2
## %bb.3:
	movl	4(%rbx), %eax
	xorl	%ecx, %ecx
	cmpl	$320, %eax                      ## imm = 0x140
	setne	%cl
	leal	(%rcx,%rcx,2), %ecx
	addl	$6, %ecx
	cmpl	$160, %eax
	movl	$2, %eax
	cmovnel	%ecx, %eax
	jmp	LBB0_4
LBB0_2:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movl	(%r14), %eax
LBB0_4:
	movl	%eax, (%rbx)
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_RAW,4,2                   ## @MODE_RAW
	.comm	_MODE_JPEG,4,2                  ## @MODE_JPEG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sn9c20x camera with unknown number of alt settings (%d), please report!\n"

	.no_dead_strip	_sd_isoc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_isoc_init
_sd_isoc_init:                          ; @sd_isoc_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x9, x8, [x0, #16]
	sbfiz	x9, x9, #2, #32
	ldr	w8, [x8, x9]
Lloh0:
	adrp	x9, _MODE_RAW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MODE_RAW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MODE_JPEG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MODE_JPEG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x19, #8]
	bl	_usb_ifnum_to_if
	ldr	w1, [x0]
	cmp	w1, #9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #4]
	mov	w9, #9
	mov	w10, #6
	cmp	w8, #320
	csel	w9, w10, w9, eq
	mov	w10, #2
	cmp	w8, #160
	csel	w8, w10, w9, eq
	b	LBB0_4
LBB0_3:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	ldr	w8, [x20]
LBB0_4:
	str	w8, [x19]
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_RAW,4,2                   ; @MODE_RAW
	.comm	_MODE_JPEG,4,2                  ; @MODE_JPEG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sn9c20x camera with unknown number of alt settings (%d), please report!\n"

	.no_dead_strip	_sd_isoc_init
.subsections_via_symbols
