	.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	%r8d, %ebx
	movl	%ecx, %r8d
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %r12
	cmpl	$3, %esi
	ja	LBB0_1
## %bb.2:
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_USB_RECIP_ENDPOINT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_4:
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_USB_RECIP_ENDPOINT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_6:
	orl	(%rax), %r15d
	movl	4(%r12), %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	jmp	LBB0_9
LBB0_7:
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %r15d
	movl	4(%r12), %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
LBB0_9:
	movl	%eax, %esi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_10:
	movl	(%r12), %eax
	movl	4(%r12), %edi
	subq	$8, %rsp
	movl	%r13d, %edx
	movl	%r15d, %ecx
	xorl	%r9d, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	%rbx
	pushq	%rax
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	cmpl	$10, %r13d
	je	LBB0_13
## %bb.11:
	testl	%ebx, %ebx
	jns	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_pr_err
LBB0_13:
	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_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.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	_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	"usb_control_msg error %i, request = 0x%x, error = %i\n"

	.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	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	cmp	w1, #3
	b.hi	LBB0_3
; %bb.1:
	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:
Lloh2:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _USB_RECIP_ENDPOINT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _USB_RECIP_ENDPOINT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w24, w8, w9
	b	LBB0_6
LBB0_3:
	mov	w24, #0
	mov	w1, #0
	b	LBB0_10
LBB0_4:
Lloh11:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _USB_RECIP_ENDPOINT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _USB_RECIP_ENDPOINT@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh19:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _USB_RECIP_DEVICE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _USB_RECIP_DEVICE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w24, w9, w8
LBB0_6:
	ldr	w0, [x23, #4]
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	b	LBB0_9
LBB0_7:
Lloh25:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh29:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _USB_RECIP_DEVICE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _USB_RECIP_DEVICE@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	orr	w24, w8, w9
	ldr	w0, [x23, #4]
	mov	w1, #0
	bl	_usb_sndctrlpipe
LBB0_9:
	mov	x1, x0
LBB0_10:
	ldp	w6, w0, [x23]
	mov	w8, #500
	str	w8, [sp]
	mov	x2, x19
	mov	x3, x24
	mov	x4, x22
	mov	w5, #0
	mov	x7, x21
	bl	_usb_control_msg
	mov	x21, x0
	cmp	w19, #10
	b.eq	LBB0_13
; %bb.11:
	tbz	w21, #31, LBB0_13
; %bb.12:
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_pr_err
LBB0_13:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-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	_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	"usb_control_msg error %i, request = 0x%x, error = %i\n"

	.no_dead_strip	_stv_sndctrl
.subsections_via_symbols
