	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_flash_s_ctrl
_v4l2_flash_s_ctrl:                     ## @v4l2_flash_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_v4l2_ctrl_to_v4l2_flash
	movq	%rax, %r13
	movl	$-131, %eax
	addl	(%rbx), %eax
	cmpl	$7, %eax
	ja	LBB0_14
## %bb.1:
	movq	(%r13), %r15
	movq	8(%r13), %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_flash_set_led_brightness
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_3:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_led_set_flash_timeout          ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	callq	___software_strobe_mode_inactive
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_13
LBB0_5:
	movq	_LED_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rax
	xorl	%r12d, %r12d
	cmpl	$130, 4(%rax)
	jne	LBB0_16
## %bb.6:
	movl	4(%rbx), %eax
	jmp	LBB0_26
LBB0_7:
	movq	%r15, %rdi
	callq	___software_strobe_mode_inactive
	testl	%eax, %eax
	je	LBB0_18
LBB0_8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movl	4(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_20
## %bb.10:
	cmpl	$130, %eax
	je	LBB0_24
## %bb.11:
	cmpl	$129, %eax
	jne	LBB0_14
## %bb.12:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_led_set_brightness_sync
LBB0_13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	jmp	LBB0_19
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_led_set_flash_brightness       ## TAILCALL
LBB0_18:
	movq	%r14, %rdi
	movl	$1, %esi
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_led_set_flash_strobe           ## TAILCALL
LBB0_20:
	movq	_STROBE_SOURCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r15,%rax,8)
	je	LBB0_22
## %bb.21:
	movq	_external_strobe_set@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_call_flash_op
	testl	%eax, %eax
	js	LBB0_29
LBB0_22:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_led_set_flash_strobe
	testl	%eax, %eax
	js	LBB0_29
## %bb.23:
	movq	_TORCH_INTENSITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rsi
	movq	%r13, %rdi
	callq	_v4l2_flash_set_led_brightness
	jmp	LBB0_16
LBB0_24:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_led_set_brightness_sync
	movq	_STROBE_SOURCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movl	4(%rax), %eax
LBB0_26:
	movq	_V4L2_FLASH_STROBE_SOURCE_EXTERNAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	movq	_external_strobe_set@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_call_flash_op                  ## TAILCALL
LBB0_29:
	movl	%eax, %r12d
	jmp	LBB0_16
LBB0_27:
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_17
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_STROBE_SOURCE,8,3              ## @STROBE_SOURCE
	.comm	_V4L2_FLASH_STROBE_SOURCE_EXTERNAL,4,2 ## @V4L2_FLASH_STROBE_SOURCE_EXTERNAL
	.comm	_external_strobe_set,4,2        ## @external_strobe_set
	.comm	_TORCH_INTENSITY,8,3            ## @TORCH_INTENSITY
	.comm	_LED_MODE,8,3                   ## @LED_MODE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_v4l2_flash_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_flash_s_ctrl
_v4l2_flash_s_ctrl:                     ; @v4l2_flash_s_ctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x0
	bl	_v4l2_ctrl_to_v4l2_flash
	ldr	w8, [x22]
	sub	w8, w8, #131
	cmp	w8, #7
	b.hi	LBB0_15
; %bb.1:
	mov	x19, x0
	ldp	x21, x20, [x0]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	mov	x1, x22
LBB0_3:
	bl	_v4l2_flash_set_led_brightness
	mov	w0, #0
	b	LBB0_17
LBB0_4:
	ldr	w1, [x22, #4]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_led_set_flash_timeout
LBB0_5:
	mov	x0, x21
	bl	___software_strobe_mode_inactive
	cbnz	w0, LBB0_9
	b	LBB0_14
LBB0_6:
Lloh2:
	adrp	x8, _LED_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LED_MODE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	ldr	w8, [x8, #4]
	cmp	w8, #130
	b.ne	LBB0_28
; %bb.7:
	ldr	w8, [x22, #4]
	b	LBB0_27
LBB0_8:
	mov	x0, x21
	bl	___software_strobe_mode_inactive
	cbz	w0, LBB0_19
LBB0_9:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
	ldr	w8, [x22, #4]
	cmp	w8, #128
	b.eq	LBB0_21
; %bb.11:
	cmp	w8, #130
	b.eq	LBB0_25
; %bb.12:
	cmp	w8, #129
	b.ne	LBB0_15
; %bb.13:
Lloh7:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_led_set_brightness_sync
LBB0_14:
	mov	x0, x20
	mov	w1, #0
	b	LBB0_20
LBB0_15:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
	ldr	w1, [x22, #4]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_led_set_flash_brightness
LBB0_19:
	mov	x0, x20
	mov	w1, #1
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_led_set_flash_strobe
LBB0_21:
Lloh12:
	adrp	x8, _STROBE_SOURCE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STROBE_SOURCE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	cbz	x8, LBB0_23
; %bb.22:
Lloh15:
	adrp	x8, _external_strobe_set@GOTPAGE
Lloh16:
	ldr	x8, [x8, _external_strobe_set@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_call_flash_op
	tbnz	w0, #31, LBB0_17
LBB0_23:
	mov	x0, x20
	mov	w1, #0
	bl	_led_set_flash_strobe
	tbnz	w0, #31, LBB0_17
; %bb.24:
Lloh18:
	adrp	x8, _TORCH_INTENSITY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TORCH_INTENSITY@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x1, [x21, x8, lsl #3]
	mov	x0, x19
	b	LBB0_3
LBB0_25:
Lloh21:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_led_set_brightness_sync
Lloh24:
	adrp	x8, _STROBE_SOURCE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STROBE_SOURCE@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	cbz	x8, LBB0_28
; %bb.26:
	ldr	w8, [x8, #4]
LBB0_27:
Lloh27:
	adrp	x9, _V4L2_FLASH_STROBE_SOURCE_EXTERNAL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _V4L2_FLASH_STROBE_SOURCE_EXTERNAL@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w2, eq
Lloh30:
	adrp	x8, _external_strobe_set@GOTPAGE
Lloh31:
	ldr	x8, [x8, _external_strobe_set@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_call_flash_op
LBB0_28:
	mov	w0, #0
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.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_10-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_STROBE_SOURCE,8,3              ; @STROBE_SOURCE
	.comm	_V4L2_FLASH_STROBE_SOURCE_EXTERNAL,4,2 ; @V4L2_FLASH_STROBE_SOURCE_EXTERNAL
	.comm	_external_strobe_set,4,2        ; @external_strobe_set
	.comm	_TORCH_INTENSITY,8,3            ; @TORCH_INTENSITY
	.comm	_LED_MODE,8,3                   ; @LED_MODE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_v4l2_flash_s_ctrl
.subsections_via_symbols
