	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdpvr_set_bitrate              ## -- Begin function hdpvr_set_bitrate
	.p2align	4, 0x90
_hdpvr_set_bitrate:                     ## @hdpvr_set_bitrate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	24(%rbx), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	20(%rbx), %eax
	movl	%eax, 8(%rcx)
	movl	16(%rbx), %r14d
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_CTRL_BITRATE_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_CTRL_DEFAULT_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	subq	$8, %rsp
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	$1, %edx
	movl	$56, %ecx
	pushq	$1000                           ## imm = 0x3E8
	pushq	$4
	pushq	8(%rbx)
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL_BITRATE_VALUE,4,2         ## @CTRL_BITRATE_VALUE
	.comm	_CTRL_DEFAULT_INDEX,4,2         ## @CTRL_DEFAULT_INDEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdpvr_set_bitrate              ; -- Begin function hdpvr_set_bitrate
	.p2align	2
_hdpvr_set_bitrate:                     ; @hdpvr_set_bitrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_mutex_lock
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x19, #24]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	ldr	w8, [x19, #20]
	str	w8, [x9, #8]
	ldr	w20, [x19, #16]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _CTRL_BITRATE_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTRL_BITRATE_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _CTRL_DEFAULT_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTRL_DEFAULT_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	ldr	x6, [x19, #8]
	mov	w8, #1000
	str	w8, [sp]
	mov	x0, x20
	mov	w2, #1
	mov	w3, #56
	mov	w7, #4
	bl	_usb_control_msg
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL_BITRATE_VALUE,4,2         ; @CTRL_BITRATE_VALUE
	.comm	_CTRL_DEFAULT_INDEX,4,2         ; @CTRL_DEFAULT_INDEX
.subsections_via_symbols
