	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdpvr_get_ctrl
_hdpvr_get_ctrl:                        ## @hdpvr_get_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	imull	$100000, 8(%rdi), %eax          ## imm = 0x186A0
	jmp	LBB0_12
LBB0_6:
	movl	12(%rdi), %eax
	movq	_HDPVR_CONSTANT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.7:
	movq	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	imull	$100000, 4(%rdi), %eax          ## imm = 0x186A0
	jmp	LBB0_12
LBB0_9:
	movl	(%rdi), %eax
	jmp	LBB0_12
LBB0_10:
	movq	_V4L2_MPEG_VIDEO_BITRATE_MODE_VBR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	movl	%eax, 4(%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC,4,2 ## @V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC
	.comm	_HDPVR_CONSTANT,4,2             ## @HDPVR_CONSTANT
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,4,2 ## @V4L2_MPEG_VIDEO_BITRATE_MODE_CBR
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_VBR,4,2 ## @V4L2_MPEG_VIDEO_BITRATE_MODE_VBR
	.comm	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS,4,2 ## @V4L2_MPEG_STREAM_TYPE_MPEG2_TS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hdpvr_get_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdpvr_get_ctrl
_hdpvr_get_ctrl:                        ; @hdpvr_get_ctrl
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
	sub	w9, w9, #128
	cmp	w9, #5
	b.hi	LBB0_3
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w0, #0
Lloh2:
	adrp	x8, _V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	mov	w0, #0
	ldr	w8, [x8, #8]
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	ldr	w8, [x8, #12]
Lloh7:
	adrp	x9, _HDPVR_CONSTANT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HDPVR_CONSTANT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGEOFF]
Lloh12:
	adrp	x11, _V4L2_MPEG_VIDEO_BITRATE_MODE_VBR@GOTPAGE
Lloh13:
	ldr	x11, [x11, _V4L2_MPEG_VIDEO_BITRATE_MODE_VBR@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	b	LBB0_10
LBB0_6:
	mov	w0, #0
	ldr	w8, [x8, #4]
LBB0_7:
	mov	w9, #34464
	movk	w9, #1, lsl #16
	mul	w8, w8, w9
	str	w8, [x1, #4]
	ret
LBB0_8:
	mov	w0, #0
Lloh14:
	adrp	x8, _V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x1, #4]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC,4,2 ; @V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC
	.comm	_HDPVR_CONSTANT,4,2             ; @HDPVR_CONSTANT
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,4,2 ; @V4L2_MPEG_VIDEO_BITRATE_MODE_CBR
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_VBR,4,2 ; @V4L2_MPEG_VIDEO_BITRATE_MODE_VBR
	.comm	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS,4,2 ; @V4L2_MPEG_STREAM_TYPE_MPEG2_TS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hdpvr_get_ctrl
.subsections_via_symbols
