	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_register_led
_max77693_register_led:                 ## @max77693_register_led
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_sub_led_to_led
	leaq	4(%rbx), %r14
	movq	(%rax), %r12
	movl	$0, -48(%rbp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_led_classdev_flash_register
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_max77693_init_v4l2_flash_config
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_fwnode_handle
	movq	_v4l2_flash_ops@GOTPCREL(%rip), %rcx
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	movq	%r15, %r8
	callq	_v4l2_flash_init
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_led_classdev_flash_unregister
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_v4l2_flash_ops,4,2             ## @v4l2_flash_ops
	.no_dead_strip	_max77693_register_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_register_led
_max77693_register_led:                 ; @max77693_register_led
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_sub_led_to_led
	add	x19, x20, #4
	ldr	x21, [x0]
	str	wzr, [sp, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_led_classdev_flash_register
	tbnz	w0, #31, LBB0_3
; %bb.1:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x23
	bl	_max77693_init_v4l2_flash_config
	mov	x0, x22
	bl	_of_fwnode_handle
	mov	x1, x0
Lloh0:
	adrp	x3, _v4l2_flash_ops@GOTPAGE
Lloh1:
	ldr	x3, [x3, _v4l2_flash_ops@GOTPAGEOFF]
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, x19
	bl	_v4l2_flash_init
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20]
	bl	_PTR_ERR
	mov	x24, x0
	mov	x0, x19
	bl	_led_classdev_flash_unregister
	b	LBB0_5
LBB0_3:
	mov	x24, x0
	b	LBB0_5
LBB0_4:
	mov	w24, #0
LBB0_5:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_v4l2_flash_ops,4,2             ; @v4l2_flash_ops
	.no_dead_strip	_max77693_register_led
.subsections_via_symbols
