	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv_sndctrl
_stv_sndctrl:                           ## @stv_sndctrl
	.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
	movl	%edx, %r15d
	movl	%edi, %r14d
	cmpl	$3, %edi
	ja	LBB0_1
## %bb.2:
	movl	%r9d, %r12d
	movl	%ecx, %r13d
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%r14d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movl	(%rsi), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rdx
	jmp	LBB0_4
LBB0_1:
	movl	$-1, %ebx
	cmpw	$10, %r15w
	jne	LBB0_10
	jmp	LBB0_12
LBB0_5:
	movl	(%rsi), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
LBB0_4:
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_ENDPOINT@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_6:
	movl	(%rsi), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rdx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_8
LBB0_7:
	movl	(%rsi), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rdx
LBB0_8:
	orl	(%rdx), %ecx
	movq	_PENCAM_TIMEOUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	subq	$8, %rsp
	movzwl	%r15w, %edx
	movzwl	%r13w, %r8d
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%r12
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	cmpw	$10, %r15w
	je	LBB0_12
LBB0_10:
	testl	%ebx, %ebx
	jns	LBB0_12
## %bb.11:
	movzwl	%r15w, %ecx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movl	%ebx, %r8d
	callq	_PDEBUG
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_ENDPOINT,4,2         ## @USB_RECIP_ENDPOINT
	.comm	_PENCAM_TIMEOUT,4,2             ## @PENCAM_TIMEOUT
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STV(e): usb_control_msg error %i, request = 0x%x, error = %i"

	.no_dead_strip	_stv_sndctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv_sndctrl
_stv_sndctrl:                           ; @stv_sndctrl
	.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, x2
	mov	x20, x0
	cmp	w0, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	w8, w20
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w24, [x1]
	mov	x0, x24
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh2:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w21, #-1
	cmp	w19, #10
	b.ne	LBB0_10
	b	LBB0_12
LBB0_4:
	ldr	w24, [x1]
	mov	x0, x24
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh4:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _USB_RECIP_ENDPOINT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _USB_RECIP_ENDPOINT@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	w24, [x1]
	mov	x0, x24
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh11:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh13:
	adrp	x9, _USB_RECIP_DEVICE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _USB_RECIP_DEVICE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w9, w8
	b	LBB0_9
LBB0_7:
	ldr	w24, [x1]
	mov	x0, x24
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh17:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _USB_RECIP_DEVICE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _USB_RECIP_DEVICE@GOTPAGEOFF]
LBB0_8:
	orr	w8, w9, w8
	ldr	w9, [x10]
	orr	w3, w8, w9
LBB0_9:
Lloh25:
	adrp	x8, _PENCAM_TIMEOUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PENCAM_TIMEOUT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x24
	mov	x2, x19
	mov	x4, x23
	mov	w5, #0
	mov	x6, x22
	mov	x7, x21
	bl	_usb_control_msg
	mov	x21, x0
	cmp	w19, #10
	b.eq	LBB0_12
LBB0_10:
	tbz	w21, #31, LBB0_12
; %bb.11:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	mov	x3, x19
	mov	x4, x21
	bl	_PDEBUG
LBB0_12:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_ENDPOINT,4,2         ; @USB_RECIP_ENDPOINT
	.comm	_PENCAM_TIMEOUT,4,2             ; @PENCAM_TIMEOUT
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STV(e): usb_control_msg error %i, request = 0x%x, error = %i"

	.no_dead_strip	_stv_sndctrl
.subsections_via_symbols
