	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_led_probe
_max77693_led_probe:                    ## @max77693_led_probe
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	$0, -80(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, 32(%rax)
	movl	(%r15), %eax
	movl	%eax, 28(%r14)
	movq	_MODE_FLASH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	16(%r14), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	leaq	-80(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_max77693_led_get_configuration
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_max77693_setup
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	callq	_mutex_init
	cmpq	$0, 8(%r14)
	movq	_FLED1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.4:
	movl	$1, -72(%rbp,%rsi,4)
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %r15d
	jmp	LBB0_19
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_8:
	movq	%r14, %rdi
	callq	_max77693_fled_used
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%dl
	movq	(%rbx), %rsi
	xorl	%ecx, %ecx
	cmpq	$0, 8(%r14)
	movl	%edx, -72(%rbp,%rsi,4)
	jne	LBB0_10
## %bb.9:
	movq	_FLED2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_max77693_fled_used
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	(%rbx), %rsi
LBB0_10:
	movq	_FLED2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, -72(%rbp,%rax,4)
	movslq	%esi, %r12
	xorl	%r15d, %r15d
	cmpq	%r12, %rax
	jb	LBB0_19
## %bb.11:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r12,8), %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r12
	addq	$8, %rbx
	cmpq	%r12, %rax
	jb	LBB0_19
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -72(%rbp,%r12,4)
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	leaq	-80(%rbp), %r13
	movq	%r13, %rsi
	callq	_max77693_init_fled_cdev
	movq	-64(%rbp,%r12,8), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_max77693_register_led
	movl	%eax, %r13d
	movq	_FLED2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testl	%r13d, %r13d
	jns	LBB0_12
## %bb.15:
	cmpq	%rax, %r12
	jne	LBB0_18
## %bb.16:
	movq	_FLED1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, -72(%rbp,%rax,4)
	je	LBB0_18
## %bb.17:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx,%rax,8), %edi
	callq	_v4l2_flash_release
	movq	_FLED1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rax,8), %rdi
	callq	_led_classdev_flash_unregister
LBB0_18:
	movq	%r14, %rdi
	callq	_mutex_destroy
	movl	%r13d, %r15d
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MODE_FLASH_MASK,4,2            ## @MODE_FLASH_MASK
	.comm	_FLED1,8,3                      ## @FLED1
	.comm	_FLED2,8,3                      ## @FLED2
	.no_dead_strip	_max77693_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_led_probe
_max77693_led_probe:                    ; @max77693_led_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x21, x0
	stp	xzr, xzr, [sp, #24]
	str	wzr, [sp, #8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #32]
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _MODE_FLASH_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MODE_FLASH_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
	ldr	x22, [x0, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x19
	bl	_max77693_led_get_configuration
	tbnz	w0, #31, LBB0_5
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_max77693_setup
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_mutex_init
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x23, _FLED1@GOTPAGE
Lloh10:
	ldr	x23, [x23, _FLED1@GOTPAGEOFF]
	ldr	x1, [x23]
Lloh11:
	adrp	x24, _FLED2@GOTPAGE
Lloh12:
	ldr	x24, [x24, _FLED2@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.4:
	mov	w9, #0
	add	x8, sp, #16
	mov	w10, #1
	str	w10, [x8, x1, lsl #2]
	b	LBB0_10
LBB0_5:
	mov	x20, x0
	b	LBB0_12
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_7:
	mov	x0, x19
	bl	_max77693_fled_used
	cmp	x0, #0
	cset	w8, ne
	ldr	x9, [x19, #8]
	ldr	x1, [x23]
	add	x10, sp, #16
	str	w8, [x10, x1, lsl #2]
	cbz	x9, LBB0_9
; %bb.8:
	mov	w9, #0
	b	LBB0_10
LBB0_9:
	ldr	x1, [x24]
	mov	x0, x19
	bl	_max77693_fled_used
	cmp	x0, #0
	cset	w9, ne
	ldr	x1, [x23]
LBB0_10:
	ldr	x8, [x24]
	add	x25, sp, #16
	str	w9, [x25, x8, lsl #2]
	sxtw	x26, w1
	cmp	x8, x26
	b.hs	LBB0_14
LBB0_11:
	mov	w20, #0
LBB0_12:
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.13:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	add	x21, x22, x26, lsl #3
	add	x27, sp, #24
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x26, x26, #1
	add	x21, x21, #8
	cmp	x8, x26
	b.lo	LBB0_11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x25, x26, lsl #2]
	cbz	w9, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_max77693_init_fled_cdev
	ldr	x2, [x27, x26, lsl #3]
	add	x1, sp, #8
	mov	x0, x21
	bl	_max77693_register_led
	ldr	x8, [x24]
	tbz	w0, #31, LBB0_15
; %bb.18:
	mov	x20, x0
	cmp	x26, x8
	b.ne	LBB0_21
; %bb.19:
	ldr	x8, [x23]
	add	x9, sp, #16
	ldr	w9, [x9, x8, lsl #2]
	cbz	w9, LBB0_21
; %bb.20:
	add	x8, x22, x8, lsl #3
	ldr	w0, [x8, #4]
	bl	_v4l2_flash_release
	ldr	x8, [x23]
	add	x0, x22, x8, lsl #3
	bl	_led_classdev_flash_unregister
LBB0_21:
	mov	x0, x19
	bl	_mutex_destroy
	b	LBB0_12
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MODE_FLASH_MASK,4,2            ; @MODE_FLASH_MASK
	.comm	_FLED1,8,3                      ; @FLED1
	.comm	_FLED2,8,3                      ; @FLED2
	.no_dead_strip	_max77693_led_probe
.subsections_via_symbols
