	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm355x_probe
_lm355x_probe:                          ## @lm355x_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
	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, %r12
	callq	_dev_get_platdata
	movq	%rax, %rbx
	movl	4(%r12), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$136, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r15
	movq	%r12, 128(%rax)
	movl	(%r14), %eax
	movl	%eax, (%r15)
	cmpl	$129, %eax
	je	LBB0_9
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.5:
	movq	_lm3556_regs@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODATA@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_lm3554_regs@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 120(%r15)
	movq	%rbx, 112(%r15)
	movq	_lm355x_regmap@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 108(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movl	108(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_12:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	104(%r15), %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, %rdi
	callq	_lm355x_chip_init
	testl	%eax, %eax
	js	LBB0_22
## %bb.17:
	leaq	8(%r15), %r13
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 8(%r15)
	movl	$16, 16(%r15)
	movq	_lm355x_strobe_brightness_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r15)
	movq	%rax, 24(%r15)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_22
## %bb.18:
	leaq	40(%r15), %rsi
	leaq	L_.str.4(%rip), %rax
	movq	%rax, 40(%r15)
	movl	$8, 48(%r15)
	movq	_lm355x_torch_brightness_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 68(%r15)
	movq	%rax, 56(%r15)
	movq	%r12, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_23
## %bb.19:
	movq	%r15, %rsi
	addq	$72, %rsi
	leaq	L_.str.5(%rip), %rax
	movq	%rax, 72(%r15)
	movl	(%r14), %eax
	cmpl	$129, %eax
	jne	LBB0_24
## %bb.20:
	movl	$4, 80(%r15)
	movq	_lm355x_indicator_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r15)
	jmp	LBB0_26
LBB0_22:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_23:
	movl	%eax, %ebx
	jmp	LBB0_29
LBB0_24:
	movl	$8, 80(%r15)
	movq	_lm355x_indicator_brightness_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 100(%r15)
	cmpl	$128, %eax
	jne	LBB0_26
## %bb.25:
	movq	_lm355x_indicator_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r15)
LBB0_26:
	movq	%r12, %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_28
## %bb.27:
	movq	_lm355x_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_28:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_led_classdev_unregister
LBB0_29:
	movq	%r13, %rdi
	callq	_led_classdev_unregister
	jmp	LBB0_15
	.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	_lm3554_regs,4,2                ## @lm3554_regs
	.comm	_lm3556_regs,4,2                ## @lm3556_regs
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_lm355x_regmap,4,2              ## @lm355x_regmap
L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate register map: %d\n"

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

	.comm	_lm355x_strobe_brightness_set,4,2 ## @lm355x_strobe_brightness_set
L_.str.4:                               ## @.str.4
	.asciz	"torch"

	.comm	_lm355x_torch_brightness_set,4,2 ## @lm355x_torch_brightness_set
L_.str.5:                               ## @.str.5
	.asciz	"indicator"

	.comm	_lm355x_indicator_brightness_set,4,2 ## @lm355x_indicator_brightness_set
	.comm	_lm355x_indicator_groups,4,2    ## @lm355x_indicator_groups
L_.str.6:                               ## @.str.6
	.asciz	"%s is initialized\n"

	.comm	_lm355x_name,8,3                ## @lm355x_name
	.no_dead_strip	_lm355x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm355x_probe
_lm355x_probe:                          ; @lm355x_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	x20, x1
	mov	x19, x0
	bl	_dev_get_platdata
	mov	x22, 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_6
; %bb.1:
	cbz	x22, LBB0_7
; %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_8
; %bb.3:
	mov	x21, x0
	str	x19, [x0, #128]
	ldr	w8, [x20]
	str	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.5:
Lloh6:
	adrp	x8, _lm3556_regs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lm3556_regs@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _ENODATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh18:
	adrp	x8, _lm3554_regs@GOTPAGE
Lloh19:
	ldr	x8, [x8, _lm3554_regs@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x21, #120]
	str	x22, [x21, #112]
Lloh20:
	adrp	x1, _lm355x_regmap@GOTPAGE
Lloh21:
	ldr	x1, [x1, _lm355x_regmap@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x21, #108]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w0, [x21, #108]
	bl	_PTR_ERR
	mov	x23, x0
	str	x23, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_14
LBB0_12:
Lloh24:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_14:
	mov	x0, x23
	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_15:
	add	x0, x21, #104
	bl	_mutex_init
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_set_clientdata
	mov	x0, x21
	bl	_lm355x_chip_init
	tbnz	w0, #31, LBB0_20
; %bb.16:
Lloh26:
	adrp	x8, l_.str.3@PAGE
Lloh27:
	add	x8, x8, l_.str.3@PAGEOFF
	mov	x22, x21
	str	x8, [x22, #8]!
	mov	w9, #16
	str	w9, [x22, #8]
Lloh28:
	adrp	x9, _lm355x_strobe_brightness_set@GOTPAGE
Lloh29:
	ldr	x9, [x9, _lm355x_strobe_brightness_set@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	str	w9, [x22, #28]
	str	x8, [x22, #16]
	mov	x0, x19
	mov	x1, x22
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_20
; %bb.17:
Lloh31:
	adrp	x8, l_.str.4@PAGE
Lloh32:
	add	x8, x8, l_.str.4@PAGEOFF
	mov	x24, x21
	str	x8, [x24, #40]!
	mov	w9, #8
	str	w9, [x24, #8]
Lloh33:
	adrp	x9, _lm355x_torch_brightness_set@GOTPAGE
Lloh34:
	ldr	x9, [x9, _lm355x_torch_brightness_set@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	str	w9, [x24, #28]
	str	x8, [x24, #16]
	mov	x0, x19
	mov	x1, x24
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_21
; %bb.18:
Lloh36:
	adrp	x8, l_.str.5@PAGE
Lloh37:
	add	x8, x8, l_.str.5@PAGEOFF
	mov	x1, x21
	str	x8, [x1, #72]!
	ldr	w8, [x20]
	cmp	w8, #129
	b.ne	LBB0_22
; %bb.19:
	mov	w8, #4
	str	w8, [x21, #80]
Lloh38:
	adrp	x8, _lm355x_indicator_brightness_set@GOTPAGE
Lloh39:
	ldr	x8, [x8, _lm355x_indicator_brightness_set@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x21, #100]
	b	LBB0_24
LBB0_20:
	mov	x23, x0
	b	LBB0_14
LBB0_21:
	mov	x23, x0
	b	LBB0_27
LBB0_22:
	mov	w9, #8
	str	w9, [x21, #80]
Lloh41:
	adrp	x9, _lm355x_indicator_brightness_set@GOTPAGE
Lloh42:
	ldr	x9, [x9, _lm355x_indicator_brightness_set@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	str	w9, [x21, #100]
	cmp	w8, #128
	b.ne	LBB0_24
; %bb.23:
Lloh44:
	adrp	x8, _lm355x_indicator_groups@GOTPAGE
Lloh45:
	ldr	x8, [x8, _lm355x_indicator_groups@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	str	w8, [x21, #96]
LBB0_24:
	mov	x0, x19
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_26
; %bb.25:
Lloh47:
	adrp	x8, _lm355x_name@GOTPAGE
Lloh48:
	ldr	x8, [x8, _lm355x_name@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	ldrsw	x9, [x20]
	ldr	w2, [x8, x9, lsl #2]
Lloh50:
	adrp	x1, l_.str.6@PAGE
Lloh51:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w23, #0
	b	LBB0_14
LBB0_26:
	mov	x23, x0
	mov	x0, x24
	bl	_led_classdev_unregister
LBB0_27:
	mov	x0, x22
	bl	_led_classdev_unregister
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.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	_lm3554_regs,4,2                ; @lm3554_regs
	.comm	_lm3556_regs,4,2                ; @lm3556_regs
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_lm355x_regmap,4,2              ; @lm355x_regmap
l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate register map: %d\n"

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

	.comm	_lm355x_strobe_brightness_set,4,2 ; @lm355x_strobe_brightness_set
l_.str.4:                               ; @.str.4
	.asciz	"torch"

	.comm	_lm355x_torch_brightness_set,4,2 ; @lm355x_torch_brightness_set
l_.str.5:                               ; @.str.5
	.asciz	"indicator"

	.comm	_lm355x_indicator_brightness_set,4,2 ; @lm355x_indicator_brightness_set
	.comm	_lm355x_indicator_groups,4,2    ; @lm355x_indicator_groups
l_.str.6:                               ; @.str.6
	.asciz	"%s is initialized\n"

	.comm	_lm355x_name,8,3                ; @lm355x_name
	.no_dead_strip	_lm355x_probe
.subsections_via_symbols
