	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbtv_set_regs                 ## -- Begin function usbtv_set_regs
	.p2align	4, 0x90
_usbtv_set_regs:                        ## @usbtv_set_regs
	.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, %r13d
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	testl	%r13d, %r13d
	jle	LBB0_6
## %bb.1:
	movl	%eax, %r15d
	movl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r14,8), %r9d
	movl	4(%r12,%r14,8), %r8d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_USBTV_REQUEST_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	subq	$8, %rsp
	movl	%r15d, %esi
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_2
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USBTV_REQUEST_REG,4,2          ## @USBTV_REQUEST_REG
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbtv_set_regs                 ; -- Begin function usbtv_set_regs
	.p2align	2
_usbtv_set_regs:                        ; @usbtv_set_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0]
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x23, _USBTV_REQUEST_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _USBTV_REQUEST_REG@GOTPAGEOFF]
Lloh2:
	adrp	x24, _USB_DIR_OUT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _USB_DIR_OUT@GOTPAGEOFF]
	add	x22, x22, #4
Lloh4:
	adrp	x25, _USB_TYPE_VENDOR@GOTPAGE
Lloh5:
	ldr	x25, [x25, _USB_TYPE_VENDOR@GOTPAGEOFF]
	mov	w21, w21
Lloh6:
	adrp	x26, _USB_RECIP_DEVICE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _USB_RECIP_DEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w5, w4, [x22, #-4]
	ldr	w0, [x19]
	ldr	w2, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w3, w8, w9
	str	wzr, [sp]
	mov	x1, x20
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #8
	subs	x21, x21, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USBTV_REQUEST_REG,4,2          ; @USBTV_REQUEST_REG
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
.subsections_via_symbols
