	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcap_led_probe
_cpcap_led_probe:                       ## @cpcap_led_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
	movq	_cpcap_led_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_of_match_ptr
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	%r15, (%r14)
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.4:
	movl	(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 36(%r14)
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movl	%eax, 40(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movl	40(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	jmp	LBB0_17
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_12:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_13:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_14:
	leaq	16(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_device_property_read_string
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
LBB0_16:
	movl	%ebx, %edx
LBB0_17:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_18:
	movq	24(%r14), %rax
	movq	16(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.19:
	movl	36(%r14), %edi
	movl	(%rax), %esi
	movl	8(%rax), %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_16
LBB0_21:
	leaq	8(%r14), %rbx
	movq	%r14, %rdi
	addq	$32, %rdi
	callq	_mutex_init
	movq	24(%r14), %rax
	movl	4(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_cpcap_led_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_16
LBB0_23:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_cpcap_led_of_match,4,2         ## @cpcap_led_of_match
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported LED"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"vdd"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't get regulator: %d"

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

L_.str.4:                               ## @.str.4
	.asciz	"Couldn't read LED label: %d"

L_.str.5:                               ## @.str.5
	.asciz	"regmap failed: %d"

	.comm	_cpcap_led_set,4,2              ## @cpcap_led_set
L_.str.6:                               ## @.str.6
	.asciz	"Couldn't register LED: %d"

	.no_dead_strip	_cpcap_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcap_led_probe
_cpcap_led_probe:                       ; @cpcap_led_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
Lloh0:
	adrp	x8, _cpcap_led_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpcap_led_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_of_match_ptr
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, 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, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x8, [x21]
	str	x8, [x20, #24]
	str	x19, [x20]
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.4:
	ldr	w0, [x19]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x20, #36]
	cbz	w0, LBB0_12
; %bb.5:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.6:
	ldr	w0, [x20, #40]
	bl	_PTR_ERR
	mov	x19, x0
	ldr	x0, [x20]
	str	x19, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	mov	x0, x19
	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_10:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_11:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_12:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_13:
	add	x2, x20, #16
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_string
	cbz	w0, LBB0_16
; %bb.14:
	mov	x21, x0
	ldr	x0, [x20]
	str	x21, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_15:
	bl	_dev_err
	mov	x19, x21
	b	LBB0_9
LBB0_16:
	ldr	x8, [x20, #24]
	ldr	x2, [x8, #16]
	cbz	x2, LBB0_19
; %bb.17:
	ldr	w0, [x20, #36]
	ldr	w1, [x8]
	ldr	w3, [x8, #8]
	bl	_regmap_update_bits
	cbz	w0, LBB0_19
; %bb.18:
	mov	x21, x0
	ldr	x0, [x20]
	str	x21, [sp]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_19:
	add	x21, x20, #8
	add	x0, x20, #32
	bl	_mutex_init
	ldr	x8, [x20, #24]
	ldr	w8, [x8, #4]
Lloh24:
	adrp	x9, _cpcap_led_set@GOTPAGE
Lloh25:
	ldr	x9, [x9, _cpcap_led_set@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_led_classdev_register
	mov	x19, x0
	cbz	w0, LBB0_9
; %bb.20:
	ldr	x0, [x20]
	str	x19, [sp]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_cpcap_led_of_match,4,2         ; @cpcap_led_of_match
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported LED"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"vdd"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't get regulator: %d"

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

l_.str.4:                               ; @.str.4
	.asciz	"Couldn't read LED label: %d"

l_.str.5:                               ; @.str.5
	.asciz	"regmap failed: %d"

	.comm	_cpcap_led_set,4,2              ; @cpcap_led_set
l_.str.6:                               ; @.str.6
	.asciz	"Couldn't register LED: %d"

	.no_dead_strip	_cpcap_led_probe
.subsections_via_symbols
