	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_s_ctrl
_vidioc_s_ctrl:                         ## @vidioc_s_ctrl
	.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	(%rsi), %r8
	movq	8(%r8), %r14
	movq	_HEXIUM_CONTROLS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_hexium_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-8(%rbx,%rcx,8), %rax
	decq	%rcx
	cmpq	(%rdx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_V4L2_CID_PRIVATE_BASE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movl	8(%rdx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_6
LBB0_22:
	movq	(%r8), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	movl	(%r14), %eax
LBB0_6:
	movslq	%eax, %rdi
	callq	_DEB_D
	movl	(%r14), %eax
	cmpl	$1, %eax
	je	LBB0_15
## %bb.7:
	testl	%eax, %eax
	jne	LBB0_20
## %bb.8:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rcx
	movq	8(%r14), %rax
	cmpq	%rax, (%rcx)
	jne	LBB0_11
## %bb.9:
	movq	_hexium_pal@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_15:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rcx
	movq	8(%r14), %rax
	cmpq	%rax, (%rcx)
	jne	LBB0_17
## %bb.16:
	movq	_hexium_pal_bw@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_13
## %bb.12:
	movq	_hexium_ntsc@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_17:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_19
## %bb.18:
	movq	_hexium_ntsc_bw@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_13:
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_20
## %bb.14:
	movq	_hexium_secam@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hexium_set_standard
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_19:
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEXIUM_CONTROLS,4,2            ## @HEXIUM_CONTROLS
	.comm	_hexium_controls,8,3            ## @hexium_controls
	.comm	_V4L2_CID_PRIVATE_BASE,8,3      ## @V4L2_CID_PRIVATE_BASE
	.comm	_V4L2_STD_PAL,8,3               ## @V4L2_STD_PAL
	.comm	_hexium_pal,4,2                 ## @hexium_pal
	.comm	_V4L2_STD_NTSC,8,3              ## @V4L2_STD_NTSC
	.comm	_hexium_ntsc,4,2                ## @hexium_ntsc
	.comm	_V4L2_STD_SECAM,8,3             ## @V4L2_STD_SECAM
	.comm	_hexium_secam,4,2               ## @hexium_secam
	.comm	_hexium_pal_bw,4,2              ## @hexium_pal_bw
	.comm	_hexium_ntsc_bw,4,2             ## @hexium_ntsc_bw
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_s_ctrl
_vidioc_s_ctrl:                         ; @vidioc_s_ctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _HEXIUM_CONTROLS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HEXIUM_CONTROLS@GOTPAGEOFF]
	ldr	x19, [x8, #8]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _hexium_controls@GOTPAGE
Lloh4:
	ldr	x10, [x10, _hexium_controls@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	sub	x10, x10, #8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x11, [x10, x9, lsl #3]
	sub	x9, x9, #1
	ldr	x12, [x2]
	cmp	x11, x12
	b.ne	LBB0_1
; %bb.3:
Lloh6:
	adrp	x8, _V4L2_CID_PRIVATE_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_CID_PRIVATE_BASE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x11, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x2, #8]
	str	w8, [x19]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x3, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x3
LBB0_6:
	ldr	w8, [x19]
LBB0_7:
	sxtw	x0, w8
	bl	_DEB_D
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_11
; %bb.8:
	cbnz	w8, LBB0_21
; %bb.9:
Lloh9:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
	ldr	x8, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.10:
Lloh12:
	adrp	x8, _hexium_pal@GOTPAGE
Lloh13:
	ldr	x8, [x8, _hexium_pal@GOTPAGEOFF]
	b	LBB0_19
LBB0_11:
Lloh14:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x8]
	ldr	x8, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.12:
Lloh17:
	adrp	x8, _hexium_pal_bw@GOTPAGE
Lloh18:
	ldr	x8, [x8, _hexium_pal_bw@GOTPAGEOFF]
	b	LBB0_19
LBB0_13:
Lloh19:
	adrp	x9, _V4L2_STD_NTSC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.14:
Lloh22:
	adrp	x8, _hexium_ntsc@GOTPAGE
Lloh23:
	ldr	x8, [x8, _hexium_ntsc@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
Lloh24:
	adrp	x9, _V4L2_STD_NTSC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.16:
Lloh27:
	adrp	x8, _hexium_ntsc_bw@GOTPAGE
Lloh28:
	ldr	x8, [x8, _hexium_ntsc_bw@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh29:
	adrp	x9, _V4L2_STD_SECAM@GOTPAGE
Lloh30:
	ldr	x9, [x9, _V4L2_STD_SECAM@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.18:
Lloh32:
	adrp	x8, _hexium_secam@GOTPAGE
Lloh33:
	ldr	x8, [x8, _hexium_secam@GOTPAGEOFF]
LBB0_19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hexium_set_standard
	mov	w0, #0
	b	LBB0_22
LBB0_20:
Lloh34:
	adrp	x9, _V4L2_STD_SECAM@GOTPAGE
Lloh35:
	ldr	x9, [x9, _V4L2_STD_SECAM@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
LBB0_21:
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_HEXIUM_CONTROLS,4,2            ; @HEXIUM_CONTROLS
	.comm	_hexium_controls,8,3            ; @hexium_controls
	.comm	_V4L2_CID_PRIVATE_BASE,8,3      ; @V4L2_CID_PRIVATE_BASE
	.comm	_V4L2_STD_PAL,8,3               ; @V4L2_STD_PAL
	.comm	_hexium_pal,4,2                 ; @hexium_pal
	.comm	_V4L2_STD_NTSC,8,3              ; @V4L2_STD_NTSC
	.comm	_hexium_ntsc,4,2                ; @hexium_ntsc
	.comm	_V4L2_STD_SECAM,8,3             ; @V4L2_STD_SECAM
	.comm	_hexium_secam,4,2               ; @hexium_secam
	.comm	_hexium_pal_bw,4,2              ; @hexium_pal_bw
	.comm	_hexium_ntsc_bw,4,2             ; @hexium_ntsc_bw
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_s_ctrl
.subsections_via_symbols
