	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_flash_set_led_brightness
_v4l2_flash_set_led_brightness:         ## @v4l2_flash_set_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	%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	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	_intensity_to_led_brightness@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_has_flash_op
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_call_flash_op
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_2:
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	___intensity_to_led_brightness
	movl	%eax, %r15d
LBB0_3:
	movq	_led_brightness_to_intensity@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_has_flash_op
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_call_flash_op
	movl	%eax, (%r14)
LBB0_5:
	movq	_TORCH_INTENSITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r14, (%r12,%rax,8)
	je	LBB0_6
## %bb.8:
	movq	(%rbx), %rdi
	jmp	LBB0_9
LBB0_6:
	movq	_LED_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rax
	movslq	(%rax), %rax
	movq	_V4L2_FLASH_LED_MODE_TORCH@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_10
## %bb.7:
	movq	8(%rbx), %rdi
LBB0_9:
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_led_set_brightness_sync        ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intensity_to_led_brightness,4,2 ## @intensity_to_led_brightness
	.comm	_led_brightness_to_intensity,4,2 ## @led_brightness_to_intensity
	.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
	.no_dead_strip	_v4l2_flash_set_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_set_led_brightness
_v4l2_flash_set_led_brightness:         ; @v4l2_flash_set_led_brightness
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x21, _intensity_to_led_brightness@GOTPAGE
Lloh1:
	ldr	x21, [x21, _intensity_to_led_brightness@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_has_flash_op
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_call_flash_op
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x20
	bl	___intensity_to_led_brightness
	mov	x21, x0
LBB0_3:
Lloh2:
	adrp	x23, _led_brightness_to_intensity@GOTPAGE
Lloh3:
	ldr	x23, [x23, _led_brightness_to_intensity@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_has_flash_op
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_call_flash_op
	str	w0, [x20]
LBB0_5:
Lloh4:
	adrp	x8, _TORCH_INTENSITY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TORCH_INTENSITY@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x8, [x22, x8, lsl #3]
	cmp	x8, x20
	b.eq	LBB0_7
; %bb.6:
	ldr	x0, [x19]
	b	LBB0_9
LBB0_7:
Lloh7:
	adrp	x8, _LED_MODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LED_MODE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x8, [x22, x8, lsl #3]
	ldrsw	x8, [x8]
Lloh10:
	adrp	x9, _V4L2_FLASH_LED_MODE_TORCH@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_FLASH_LED_MODE_TORCH@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	ldr	x0, [x19, #8]
LBB0_9:
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_led_set_brightness_sync
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_intensity_to_led_brightness,4,2 ; @intensity_to_led_brightness
	.comm	_led_brightness_to_intensity,4,2 ; @led_brightness_to_intensity
	.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
	.no_dead_strip	_v4l2_flash_set_led_brightness
.subsections_via_symbols
