	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdpvr_config_call              ## -- Begin function hdpvr_config_call
	.p2align	4, 0x90
_hdpvr_config_call:                     ## @hdpvr_config_call
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movl	%r12d, (%rax)
	movl	16(%rbx), %r12d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_CTRL_DEFAULT_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	subq	$8, %rsp
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	$1, %edx
	movl	$56, %ecx
	movl	%r14d, %r8d
	pushq	$10000                          ## imm = 0x2710
	pushq	$1
	pushq	8(%rbx)
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_hdpvr_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	callq	_v4l2_dbg
	movl	%r12d, %eax
	sarl	$31, %eax
	andl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL_DEFAULT_INDEX,4,2         ## @CTRL_DEFAULT_INDEX
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.comm	_hdpvr_debug,4,2                ## @hdpvr_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"config call request for value 0x%x returned %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdpvr_config_call              ; -- Begin function hdpvr_config_call
	.p2align	2
_hdpvr_config_call:                     ; @hdpvr_config_call
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x22, x0, #4
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x21, #8]
	str	w19, [x8]
	ldr	w19, [x21, #16]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _CTRL_DEFAULT_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTRL_DEFAULT_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	ldr	x6, [x21, #8]
	mov	w8, #10000
	str	w8, [sp]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #56
	mov	x4, x20
	mov	w7, #1
	bl	_usb_control_msg
	mov	x19, x0
	mov	x0, x22
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _hdpvr_debug@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hdpvr_debug@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x21
	mov	x4, x20
	mov	x5, x19
	bl	_v4l2_dbg
	cmp	w19, #0
	csel	w0, w19, wzr, lt
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL_DEFAULT_INDEX,4,2         ; @CTRL_DEFAULT_INDEX
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.comm	_hdpvr_debug,4,2                ; @hdpvr_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"config call request for value 0x%x returned %d\n"

.subsections_via_symbols
