	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8501_probe
_lp8501_probe:                          ## @lp8501_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, %r13
	callq	_dev_get_platdata
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	(%r12), %ecx
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	%rax, %r12
	movq	%r13, 24(%r15)
	movq	%rbx, 16(%r15)
	movq	_lp8501_cfg@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	callq	_mutex_init
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, %rdi
	callq	_lp55xx_init_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_info
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_lp55xx_register_leds
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	%r15, %rdi
	callq	_lp55xx_register_sysfs
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_lp55xx_unregister_leds
LBB0_14:
	movq	%r15, %rdi
	callq	_lp55xx_deinit_device
	jmp	LBB0_15
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	callq	_lp55xx_of_populate_pdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	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_12:
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lp8501_cfg,4,2                 ## @lp8501_cfg
L_.str.1:                               ## @.str.1
	.asciz	"%s Programmable led chip found\n"

L_.str.2:                               ## @.str.2
	.asciz	"registering sysfs failed\n"

	.no_dead_strip	_lp8501_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8501_probe
_lp8501_probe:                          ; @lp8501_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_dev_get_platdata
	mov	x23, x0
	cbz	x0, LBB0_9
LBB0_1:
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
	ldr	w1, [x23]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #4
	bl	_devm_kcalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x22, x0
	str	x19, [x21, #24]
Lloh2:
	adrp	x8, _lp8501_cfg@GOTPAGE
Lloh3:
	ldr	x8, [x8, _lp8501_cfg@GOTPAGEOFF]
	stp	x8, x23, [x21, #8]
	mov	x0, x21
	bl	_mutex_init
	mov	x0, x19
	mov	x1, x22
	bl	_i2c_set_clientdata
	mov	x0, x21
	bl	_lp55xx_init_device
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.4:
	ldr	w2, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x22
	mov	x1, x21
	bl	_lp55xx_register_leds
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_lp55xx_register_sysfs
	mov	x23, x0
	cbz	w0, LBB0_14
; %bb.6:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x22
	mov	x1, x21
	bl	_lp55xx_unregister_leds
LBB0_7:
	mov	x0, x21
	bl	_lp55xx_deinit_device
	b	LBB0_14
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	ldr	x1, [x19]
	cbz	x1, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_lp55xx_of_populate_pdata
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_1
; %bb.11:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_12:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_14:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lp8501_cfg,4,2                 ; @lp8501_cfg
l_.str.1:                               ; @.str.1
	.asciz	"%s Programmable led chip found\n"

l_.str.2:                               ; @.str.2
	.asciz	"registering sysfs failed\n"

	.no_dead_strip	_lp8501_probe
.subsections_via_symbols
