	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpia2_usb_change_streaming_alternate ## -- Begin function cpia2_usb_change_streaming_alternate
	.p2align	4, 0x90
_cpia2_usb_change_streaming_alternate:  ## @cpia2_usb_change_streaming_alternate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_USBIF_ISO_1@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	ja	LBB0_2
## %bb.1:
	movl	%esi, %ebx
	movq	_USBIF_ISO_6@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jb	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	cmpl	%ebx, (%rdi)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_cpia2_usb_stream_pause
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_configure_transfer_mode
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	callq	_cpia2_reset_camera
	movq	%r14, %rdi
	callq	_cpia2_usb_stream_resume
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USBIF_ISO_1,4,2                ## @USBIF_ISO_1
	.comm	_USBIF_ISO_6,4,2                ## @USBIF_ISO_6
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpia2_usb_change_streaming_alternate ; -- Begin function cpia2_usb_change_streaming_alternate
	.p2align	2
_cpia2_usb_change_streaming_alternate:  ; @cpia2_usb_change_streaming_alternate
	.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
Lloh0:
	adrp	x8, _USBIF_ISO_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USBIF_ISO_1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _USBIF_ISO_6@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USBIF_ISO_6@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #0, ls
	b.hs	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_cpia2_usb_stream_pause
	mov	x0, x19
	mov	x1, x20
	bl	_configure_transfer_mode
	str	w20, [x19]
	mov	x0, x19
	bl	_cpia2_reset_camera
	mov	x0, x19
	bl	_cpia2_usb_stream_resume
LBB0_4:
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_USBIF_ISO_1,4,2                ; @USBIF_ISO_1
	.comm	_USBIF_ISO_6,4,2                ; @USBIF_ISO_6
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
