	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __gsc_s_ctrl
___gsc_s_ctrl:                          ## @__gsc_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_V4L2_CTRL_FLAG_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rsi)
	jne	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	4(%rsi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	8(%rbx), %eax
	movl	%eax, 40(%r15)
	jmp	LBB0_10
LBB0_5:
	movq	_GSC_DST_FMT@GOTPCREL(%rip), %rax
	movq	_GSC_SRC_FMT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	(%r15), %eax
	notl	%eax
	testl	%eax, %ecx
	jne	LBB0_8
## %bb.6:
	movq	48(%r15), %rax
	movq	(%rax), %rdi
	movl	36(%r15), %esi
	movl	32(%r15), %edx
	movl	8(%r15), %r8d
	movl	12(%r15), %ecx
	movq	24(%r15), %rax
	movl	(%rax), %r9d
	movl	20(%r15), %eax
	movl	%eax, (%rsp)
	callq	_gsc_check_scaler_ratio
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_3:
	movl	8(%rbx), %eax
	movl	%eax, 44(%r15)
	jmp	LBB0_10
LBB0_9:
	movl	8(%rbx), %eax
	movl	%eax, 4(%r15)
	jmp	LBB0_10
LBB0_8:
	movl	8(%rbx), %eax
	movl	%eax, 16(%r15)
LBB0_10:
	movq	_GSC_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-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_4
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_GSC_DST_FMT,4,2                ## @GSC_DST_FMT
	.comm	_GSC_SRC_FMT,4,2                ## @GSC_SRC_FMT
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ## @V4L2_CTRL_FLAG_INACTIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GSC_PARAMS,4,2                 ## @GSC_PARAMS
	.no_dead_strip	___gsc_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __gsc_s_ctrl
___gsc_s_ctrl:                          ; @__gsc_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	w8, [x1]
Lloh0:
	adrp	x9, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_12
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1, #4]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.3:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w8, [x20, #8]
	str	w8, [x19, #40]
	b	LBB0_11
LBB0_5:
Lloh5:
	adrp	x8, _GSC_DST_FMT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GSC_DST_FMT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _GSC_SRC_FMT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GSC_SRC_FMT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bics	wzr, w8, w9
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x19, #48]
	ldr	x0, [x8]
	ldp	w2, w1, [x19, #32]
	ldp	w4, w3, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	w5, [x8]
	ldr	w6, [x19, #20]
	bl	_gsc_check_scaler_ratio
	cbz	w0, LBB0_10
; %bb.7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_8:
	ldr	w8, [x20, #8]
	str	w8, [x19, #44]
	b	LBB0_11
LBB0_9:
	ldr	w8, [x20, #8]
	str	w8, [x19, #4]
	b	LBB0_11
LBB0_10:
	ldr	w8, [x20, #8]
	str	w8, [x19, #16]
LBB0_11:
	mov	w0, #0
Lloh14:
	adrp	x8, _GSC_PARAMS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GSC_PARAMS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_GSC_DST_FMT,4,2                ; @GSC_DST_FMT
	.comm	_GSC_SRC_FMT,4,2                ; @GSC_SRC_FMT
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ; @V4L2_CTRL_FLAG_INACTIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GSC_PARAMS,4,2                 ; @GSC_PARAMS
	.no_dead_strip	___gsc_s_ctrl
.subsections_via_symbols
