	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3646_probe
_lm3646_probe:                          ## @lm3646_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_get_platdata
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_lm3646_regmap@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movl	16(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	testq	%r15, %r15
	jne	LBB0_6
## %bb.4:
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %r15
	movq	_LM3646_FLASH_TOUT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_LM3646_LED1_TORCH_BRT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_LM3646_LED1_FLASH_BRT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_6:
	movq	%r15, 8(%rbx)
	movq	%r14, (%rbx)
	movq	%rbx, %rdi
	callq	_lm3646_subdev_init
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_lm3646_init_device
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lm3646_regmap,4,2              ## @lm3646_regmap
	.comm	_LM3646_FLASH_TOUT_MAX,4,2      ## @LM3646_FLASH_TOUT_MAX
	.comm	_LM3646_LED1_TORCH_BRT_MAX,4,2  ## @LM3646_LED1_TORCH_BRT_MAX
	.comm	_LM3646_LED1_FLASH_BRT_MAX,4,2  ## @LM3646_LED1_FLASH_BRT_MAX
	.no_dead_strip	_lm3646_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3646_probe
_lm3646_probe:                          ; @lm3646_probe
	.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
	bl	_dev_get_platdata
	mov	x21, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x1, _lm3646_regmap@GOTPAGE
Lloh3:
	ldr	x1, [x1, _lm3646_regmap@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #16]
	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	_PTR_ERR
LBB0_3:
	cbnz	x21, LBB0_6
; %bb.4:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #12
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x21, x0
Lloh4:
	adrp	x8, _LM3646_FLASH_TOUT_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LM3646_FLASH_TOUT_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #8]
Lloh7:
	adrp	x8, _LM3646_LED1_TORCH_BRT_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LM3646_LED1_TORCH_BRT_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _LM3646_LED1_FLASH_BRT_MAX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LM3646_LED1_FLASH_BRT_MAX@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
LBB0_6:
	stp	x19, x21, [x20]
	mov	x0, x20
	bl	_lm3646_subdev_init
	tbnz	w0, #31, LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_lm3646_init_device
	tbnz	w0, #31, LBB0_10
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lm3646_regmap,4,2              ; @lm3646_regmap
	.comm	_LM3646_FLASH_TOUT_MAX,4,2      ; @LM3646_FLASH_TOUT_MAX
	.comm	_LM3646_LED1_TORCH_BRT_MAX,4,2  ; @LM3646_LED1_TORCH_BRT_MAX
	.comm	_LM3646_LED1_FLASH_BRT_MAX,4,2  ; @LM3646_LED1_FLASH_BRT_MAX
	.no_dead_strip	_lm3646_probe
.subsections_via_symbols
