	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sync_device_with_v4l2_controls
___sync_device_with_v4l2_controls:      ## @__sync_device_with_v4l2_controls
	.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, %r15
	movq	(%rdi), %rbx
	movq	8(%rdi), %r14
	movq	_TORCH_INTENSITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_v4l2_flash_set_led_brightness
LBB0_2:
	movq	_INDICATOR_INTENSITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_v4l2_flash_set_led_brightness
LBB0_4:
	movq	_FLASH_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_led_set_flash_timeout
	testl	%eax, %eax
	jns	LBB0_7
	jmp	LBB0_11
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	movq	_FLASH_INTENSITY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rbx,%rcx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	(%rcx), %rsi
	movq	%r14, %rdi
	callq	_led_set_flash_brightness
	testl	%eax, %eax
	js	LBB0_11
LBB0_9:
	movq	_STROBE_SOURCE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rbx,%rcx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movq	_LED_MODE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rbx,%rdx,8), %rdx
	movq	(%rdx), %rdx
	movq	_V4L2_FLASH_LED_MODE_TORCH@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_12
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_external_strobe_set@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rcx), %rdx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_call_flash_op                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TORCH_INTENSITY,8,3            ## @TORCH_INTENSITY
	.comm	_INDICATOR_INTENSITY,8,3        ## @INDICATOR_INTENSITY
	.comm	_FLASH_TIMEOUT,8,3              ## @FLASH_TIMEOUT
	.comm	_FLASH_INTENSITY,8,3            ## @FLASH_INTENSITY
	.comm	_STROBE_SOURCE,8,3              ## @STROBE_SOURCE
	.comm	_LED_MODE,8,3                   ## @LED_MODE
	.comm	_V4L2_FLASH_LED_MODE_TORCH,8,3  ## @V4L2_FLASH_LED_MODE_TORCH
	.comm	_external_strobe_set,4,2        ## @external_strobe_set
	.no_dead_strip	___sync_device_with_v4l2_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sync_device_with_v4l2_controls
___sync_device_with_v4l2_controls:      ; @__sync_device_with_v4l2_controls
	.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	x19, x0
	ldp	x21, x20, [x0]
Lloh0:
	adrp	x8, _TORCH_INTENSITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TORCH_INTENSITY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x1, [x21, x8, lsl #3]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_v4l2_flash_set_led_brightness
LBB0_2:
Lloh3:
	adrp	x8, _INDICATOR_INTENSITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INDICATOR_INTENSITY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x1, [x21, x8, lsl #3]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_v4l2_flash_set_led_brightness
LBB0_4:
Lloh6:
	adrp	x8, _FLASH_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLASH_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_led_set_flash_timeout
	tbz	w0, #31, LBB0_7
	b	LBB0_11
LBB0_6:
	mov	w0, #0
LBB0_7:
Lloh9:
	adrp	x8, _FLASH_INTENSITY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLASH_INTENSITY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_led_set_flash_brightness
	tbnz	w0, #31, LBB0_11
LBB0_9:
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_11
; %bb.10:
Lloh15:
	adrp	x9, _LED_MODE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LED_MODE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x9, [x21, x9, lsl #3]
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _V4L2_FLASH_LED_MODE_TORCH@GOTPAGE
Lloh19:
	ldr	x10, [x10, _V4L2_FLASH_LED_MODE_TORCH@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
LBB0_11:
	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_12:
Lloh21:
	adrp	x9, _external_strobe_set@GOTPAGE
Lloh22:
	ldr	x9, [x9, _external_strobe_set@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x9]
	ldr	x2, [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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TORCH_INTENSITY,8,3            ; @TORCH_INTENSITY
	.comm	_INDICATOR_INTENSITY,8,3        ; @INDICATOR_INTENSITY
	.comm	_FLASH_TIMEOUT,8,3              ; @FLASH_TIMEOUT
	.comm	_FLASH_INTENSITY,8,3            ; @FLASH_INTENSITY
	.comm	_STROBE_SOURCE,8,3              ; @STROBE_SOURCE
	.comm	_LED_MODE,8,3                   ; @LED_MODE
	.comm	_V4L2_FLASH_LED_MODE_TORCH,8,3  ; @V4L2_FLASH_LED_MODE_TORCH
	.comm	_external_strobe_set,4,2        ; @external_strobe_set
	.no_dead_strip	___sync_device_with_v4l2_controls
.subsections_via_symbols
