	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_get_jcomp
_sd_get_jcomp:                          ## @sd_get_jcomp
	.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	(%rdi), %rax
	movq	_SENSOR_SOI763A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	8(%rbx), %edi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, 4(%r14)
	movq	_V4L2_JPEG_MARKER_DHT@GOTPCREL(%rip), %rax
	movq	_V4L2_JPEG_MARKER_DQT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_3
LBB0_1:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_SOI763A,8,3             ## @SENSOR_SOI763A
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_V4L2_JPEG_MARKER_DHT,4,2       ## @V4L2_JPEG_MARKER_DHT
	.comm	_V4L2_JPEG_MARKER_DQT,4,2       ## @V4L2_JPEG_MARKER_DQT
	.no_dead_strip	_sd_get_jcomp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_get_jcomp
_sd_get_jcomp:                          ; @sd_get_jcomp
	.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, [x0]
Lloh0:
	adrp	x9, _SENSOR_SOI763A@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SENSOR_SOI763A@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [x20, #8]
	bl	_v4l2_ctrl_g_ctrl
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _V4L2_JPEG_MARKER_DHT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_JPEG_MARKER_DHT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _V4L2_JPEG_MARKER_DQT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_JPEG_MARKER_DQT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w9, w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_SOI763A,8,3             ; @SENSOR_SOI763A
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_V4L2_JPEG_MARKER_DHT,4,2       ; @V4L2_JPEG_MARKER_DHT
	.comm	_V4L2_JPEG_MARKER_DQT,4,2       ; @V4L2_JPEG_MARKER_DQT
	.no_dead_strip	_sd_get_jcomp
.subsections_via_symbols
