	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3642_probe
_lm3642_probe:                          ## @lm3642_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, %r15
	callq	_dev_get_platdata
	movq	%rax, %rbx
	movl	4(%r15), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$136, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	movq	%r15, 64(%rax)
	movq	%rbx, 128(%rax)
	movl	8(%rbx), %eax
	movl	%eax, 120(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 116(%r14)
	movl	(%rbx), %eax
	movl	%eax, 112(%r14)
	movq	_lm3642_regmap@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 108(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movl	108(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODATA@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	104(%r14), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, %rdi
	callq	_lm3642_chip_init
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r14)
	movl	$16, 8(%r14)
	movq	_lm3642_strobe_brightness_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r14)
	movq	%rax, 16(%r14)
	movq	_lm3642_flash_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_16
## %bb.12:
	leaq	32(%r14), %r12
	leaq	L_.str.5(%rip), %rax
	movq	%rax, 32(%r14)
	movl	$8, 40(%r14)
	movq	_lm3642_torch_brightness_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%r14)
	movq	%rax, 48(%r14)
	movq	_lm3642_torch_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r14)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_17
## %bb.13:
	movq	%r14, %rsi
	addq	$72, %rsi
	leaq	L_.str.7(%rip), %rax
	movq	%rax, 72(%r14)
	movl	$8, 80(%r14)
	movq	_lm3642_indicator_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r14)
	movq	%r15, %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_18
## %bb.14:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_16:
	movl	%eax, %ebx
	movq	64(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_17:
	movl	%eax, %ebx
	movq	64(%r14), %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_18:
	movl	%eax, %ebx
	movq	64(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	callq	_led_classdev_unregister
LBB0_19:
	movq	%r14, %rdi
	callq	_led_classdev_unregister
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c functionality check fail.\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"needs Platform Data.\n"

	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lm3642_regmap,4,2              ## @lm3642_regmap
L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate register map: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"flash"

	.comm	_lm3642_strobe_brightness_set,4,2 ## @lm3642_strobe_brightness_set
	.comm	_lm3642_flash_groups,4,2        ## @lm3642_flash_groups
L_.str.4:                               ## @.str.4
	.asciz	"failed to register flash\n"

L_.str.5:                               ## @.str.5
	.asciz	"torch"

	.comm	_lm3642_torch_brightness_set,4,2 ## @lm3642_torch_brightness_set
	.comm	_lm3642_torch_groups,4,2        ## @lm3642_torch_groups
L_.str.6:                               ## @.str.6
	.asciz	"failed to register torch\n"

L_.str.7:                               ## @.str.7
	.asciz	"indicator"

	.comm	_lm3642_indicator_brightness_set,4,2 ## @lm3642_indicator_brightness_set
L_.str.8:                               ## @.str.8
	.asciz	"failed to register indicator\n"

L_.str.9:                               ## @.str.9
	.asciz	"LM3642 is initialized\n"

	.no_dead_strip	_lm3642_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3642_probe
_lm3642_probe:                          ; @lm3642_probe
	.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	x19, x0
	bl	_dev_get_platdata
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_5
; %bb.1:
	cbz	x21, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #136
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	str	x19, [x0, #64]
	str	x21, [x0, #128]
	ldr	w8, [x21, #8]
	str	w8, [x0, #120]
	ldr	d0, [x21]
	str	d0, [x0, #112]
Lloh6:
	adrp	x1, _lm3642_regmap@GOTPAGE
Lloh7:
	ldr	x1, [x1, _lm3642_regmap@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #108]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w0, [x20, #108]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh16:
	adrp	x8, _ENODATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
	add	x0, x20, #104
	bl	_mutex_init
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	x0, x20
	bl	_lm3642_chip_init
	tbnz	w0, #31, LBB0_15
; %bb.11:
Lloh20:
	adrp	x8, l_.str.3@PAGE
Lloh21:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x20]
	mov	w9, #16
	str	w9, [x20, #8]
Lloh22:
	adrp	x9, _lm3642_strobe_brightness_set@GOTPAGE
Lloh23:
	ldr	x9, [x9, _lm3642_strobe_brightness_set@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	str	x8, [x20, #16]
Lloh25:
	adrp	x8, _lm3642_flash_groups@GOTPAGE
Lloh26:
	ldr	x8, [x8, _lm3642_flash_groups@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	stp	w9, w8, [x20, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_16
; %bb.12:
Lloh28:
	adrp	x8, l_.str.5@PAGE
Lloh29:
	add	x8, x8, l_.str.5@PAGEOFF
	mov	x22, x20
	str	x8, [x22, #32]!
	mov	w23, #8
	str	w23, [x22, #8]
Lloh30:
	adrp	x9, _lm3642_torch_brightness_set@GOTPAGE
Lloh31:
	ldr	x9, [x9, _lm3642_torch_brightness_set@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	str	x8, [x22, #16]
Lloh33:
	adrp	x8, _lm3642_torch_groups@GOTPAGE
Lloh34:
	ldr	x8, [x8, _lm3642_torch_groups@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	stp	w9, w8, [x22, #24]
	mov	x0, x19
	mov	x1, x22
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_17
; %bb.13:
Lloh36:
	adrp	x8, l_.str.7@PAGE
Lloh37:
	add	x8, x8, l_.str.7@PAGEOFF
	mov	x1, x20
	str	x8, [x1, #72]!
	str	w23, [x1, #8]
Lloh38:
	adrp	x8, _lm3642_indicator_brightness_set@GOTPAGE
Lloh39:
	ldr	x8, [x8, _lm3642_indicator_brightness_set@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x1, #24]
	mov	x0, x19
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_18
; %bb.14:
Lloh41:
	adrp	x1, l_.str.9@PAGE
Lloh42:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w21, #0
	b	LBB0_9
LBB0_15:
	mov	x21, x0
	b	LBB0_9
LBB0_16:
	mov	x21, x0
	ldr	x0, [x20, #64]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_17:
	mov	x21, x0
	ldr	x0, [x20, #64]
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
	b	LBB0_19
LBB0_18:
	mov	x21, x0
	ldr	x0, [x20, #64]
Lloh47:
	adrp	x1, l_.str.8@PAGE
Lloh48:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_err
	mov	x0, x22
	bl	_led_classdev_unregister
LBB0_19:
	mov	x0, x20
	bl	_led_classdev_unregister
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c functionality check fail.\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"needs Platform Data.\n"

	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lm3642_regmap,4,2              ; @lm3642_regmap
l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate register map: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"flash"

	.comm	_lm3642_strobe_brightness_set,4,2 ; @lm3642_strobe_brightness_set
	.comm	_lm3642_flash_groups,4,2        ; @lm3642_flash_groups
l_.str.4:                               ; @.str.4
	.asciz	"failed to register flash\n"

l_.str.5:                               ; @.str.5
	.asciz	"torch"

	.comm	_lm3642_torch_brightness_set,4,2 ; @lm3642_torch_brightness_set
	.comm	_lm3642_torch_groups,4,2        ; @lm3642_torch_groups
l_.str.6:                               ; @.str.6
	.asciz	"failed to register torch\n"

l_.str.7:                               ; @.str.7
	.asciz	"indicator"

	.comm	_lm3642_indicator_brightness_set,4,2 ; @lm3642_indicator_brightness_set
l_.str.8:                               ; @.str.8
	.asciz	"failed to register indicator\n"

l_.str.9:                               ; @.str.9
	.asciz	"LM3642 is initialized\n"

	.no_dead_strip	_lm3642_probe
.subsections_via_symbols
