	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_flash_update_led_brightness
_v4l2_flash_update_led_brightness:      ## @v4l2_flash_update_led_brightness
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_TORCH_INTENSITY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rsi, (%rax,%rcx,8)
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %r15
	jmp	LBB0_4
LBB0_1:
	movq	_LED_MODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rcx
	movq	_V4L2_FLASH_LED_MODE_TORCH@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.2:
	movq	8(%rbx), %r15
LBB0_4:
	movq	%r15, %rdi
	callq	_led_update_brightness
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	movq	_led_brightness_to_intensity@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_has_flash_op
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r12), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_call_flash_op
	jmp	LBB0_8
LBB0_7:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	___led_brightness_to_intensity
LBB0_8:
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TORCH_INTENSITY,8,3            ## @TORCH_INTENSITY
	.comm	_LED_MODE,8,3                   ## @LED_MODE
	.comm	_V4L2_FLASH_LED_MODE_TORCH,8,3  ## @V4L2_FLASH_LED_MODE_TORCH
	.comm	_led_brightness_to_intensity,4,2 ## @led_brightness_to_intensity
	.no_dead_strip	_v4l2_flash_update_led_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_flash_update_led_brightness
_v4l2_flash_update_led_brightness:      ; @v4l2_flash_update_led_brightness
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _TORCH_INTENSITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TORCH_INTENSITY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, x1
	b.eq	LBB0_2
; %bb.1:
	ldr	x21, [x20]
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _LED_MODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LED_MODE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _V4L2_FLASH_LED_MODE_TORCH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_FLASH_LED_MODE_TORCH@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x21, [x20, #8]
LBB0_4:
	mov	x0, x21
	bl	_led_update_brightness
	tbnz	w0, #31, LBB0_10
; %bb.5:
Lloh9:
	adrp	x22, _led_brightness_to_intensity@GOTPAGE
Lloh10:
	ldr	x22, [x22, _led_brightness_to_intensity@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_has_flash_op
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w1, [x22]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_call_flash_op
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	ldr	w1, [x21]
	mov	x0, x19
	bl	___led_brightness_to_intensity
LBB0_9:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TORCH_INTENSITY,8,3            ; @TORCH_INTENSITY
	.comm	_LED_MODE,8,3                   ; @LED_MODE
	.comm	_V4L2_FLASH_LED_MODE_TORCH,8,3  ; @V4L2_FLASH_LED_MODE_TORCH
	.comm	_led_brightness_to_intensity,4,2 ; @led_brightness_to_intensity
	.no_dead_strip	_v4l2_flash_update_led_brightness
.subsections_via_symbols
