	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3530_probe
_lm3530_probe:                          ## @lm3530_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_LM3530_BL_MODE_PWM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_4:
	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.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movq	%r15, 56(%r14)
	movq	%rbx, 32(%r14)
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movl	$0, 8(%r14)
	movq	_LM3530_LED_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_lm3530_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_MAX_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_lm3530_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	40(%r14), %rdi
	callq	_PTR_ERR
	movq	$0, 40(%r14)
	jmp	LBB0_16
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_10:
	movq	32(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	callq	_lm3530_init_registers
	testl	%eax, %eax
	js	LBB0_12
LBB0_13:
	addq	$12, %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_led_classdev_register
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_15
## %bb.14:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r14d, %ebx
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movl	%ebx, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"platform data required\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_LM3530_BL_MODE_PWM,8,3         ## @LM3530_BL_MODE_PWM
L_.str.1:                               ## @.str.1
	.asciz	"Illegal Mode request\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
L_.str.2:                               ## @.str.2
	.asciz	"I2C_FUNC_I2C not supported\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.comm	_LM3530_LED_DEV,4,2             ## @LM3530_LED_DEV
	.comm	_lm3530_brightness_set,4,2      ## @lm3530_brightness_set
	.comm	_MAX_BRIGHTNESS,4,2             ## @MAX_BRIGHTNESS
	.comm	_lm3530_groups,4,2              ## @lm3530_groups
L_.str.3:                               ## @.str.3
	.asciz	"vin"

L_.str.4:                               ## @.str.4
	.asciz	"regulator get failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"Register Init failed: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Register led class failed: %d\n"

	.no_dead_strip	_lm3530_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3530_probe
_lm3530_probe:                          ; @lm3530_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _LM3530_BL_MODE_PWM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LM3530_BL_MODE_PWM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_8
; %bb.5:
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.6:
	mov	x20, x0
	ldr	x8, [x21]
	str	x8, [x0]
	str	x19, [x0, #56]
	str	x21, [x0, #32]
Lloh17:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x0, #48]
	str	wzr, [x0, #8]
Lloh20:
	adrp	x8, _LM3530_LED_DEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LM3530_LED_DEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _lm3530_groups@GOTPAGE
Lloh24:
	ldr	x9, [x9, _lm3530_groups@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	mov	x21, x0
	str	w9, [x21, #12]!
	str	w8, [x0, #24]
Lloh26:
	adrp	x8, _lm3530_brightness_set@GOTPAGE
Lloh27:
	ldr	x8, [x8, _lm3530_brightness_set@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _MAX_BRIGHTNESS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MAX_BRIGHTNESS@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.7:
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #40]
	bl	_PTR_ERR
	str	xzr, [x20, #40]
	b	LBB0_12
LBB0_8:
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh38:
	adrp	x8, _EIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	mov	x0, x20
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
	ldr	x8, [x20, #32]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_lm3530_init_registers
	tbnz	w0, #31, LBB0_18
LBB0_15:
	mov	x0, x19
	mov	x1, x21
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_17
; %bb.16:
	mov	w20, #0
	b	LBB0_11
LBB0_17:
	mov	x20, x0
	str	x20, [sp]
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_11
LBB0_18:
	mov	x20, x0
	str	x20, [sp]
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"platform data required\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_LM3530_BL_MODE_PWM,8,3         ; @LM3530_BL_MODE_PWM
l_.str.1:                               ; @.str.1
	.asciz	"Illegal Mode request\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
l_.str.2:                               ; @.str.2
	.asciz	"I2C_FUNC_I2C not supported\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_LM3530_LED_DEV,4,2             ; @LM3530_LED_DEV
	.comm	_lm3530_brightness_set,4,2      ; @lm3530_brightness_set
	.comm	_MAX_BRIGHTNESS,4,2             ; @MAX_BRIGHTNESS
	.comm	_lm3530_groups,4,2              ; @lm3530_groups
l_.str.3:                               ; @.str.3
	.asciz	"vin"

l_.str.4:                               ; @.str.4
	.asciz	"regulator get failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"Register Init failed: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Register led class failed: %d\n"

	.no_dead_strip	_lm3530_probe
.subsections_via_symbols
