	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_byte_probe
_spi_byte_probe:                        ## @spi_byte_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	%rdi, %r15
	leaq	L_.str(%rip), %rax
	movq	%rax, -48(%rbp)
	movq	_spi_byte_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r13
	movl	(%r15), %edi
	callq	_of_get_child_count
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.2:
	movl	(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_of_get_next_child
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_string
	movl	48(%r14), %edi
	movq	-48(%rbp), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r15, 56(%r14)
	movq	%r14, %rdi
	callq	_mutex_init
	movq	(%r13), %rax
	movq	%rax, 40(%r14)
	movl	48(%r14), %ecx
	movl	%ecx, 32(%r14)
	movq	_LED_OFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r14)
	movq	8(%rax), %rcx
	subq	(%rax), %rcx
	movq	%rcx, 16(%r14)
	movq	_spi_byte_brightness_set_blocking@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	%r15, %rdi
	callq	_dev_err
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_13:
	movq	16(%r14), %rax
	movq	%rax, 8(%r14)
LBB0_14:
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_spi_byte_brightness_set_blocking
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_destroy
	jmp	LBB0_11
LBB0_16:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"leds-spi-byte::"

	.comm	_spi_byte_dt_ids,4,2            ## @spi_byte_dt_ids
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Device must have exactly one LED sub-node."

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"label"

	.comm	_LED_OFF,8,3                    ## @LED_OFF
L_.str.3:                               ## @.str.3
	.asciz	"default-state"

L_.str.4:                               ## @.str.4
	.asciz	"on"

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

L_.str.6:                               ## @.str.6
	.asciz	"default-state can only be 'on' or 'off'"

	.no_dead_strip	_spi_byte_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spi_byte_probe
_spi_byte_probe:                        ; @spi_byte_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, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #8]
Lloh2:
	adrp	x8, _spi_byte_dt_ids@GOTPAGE
Lloh3:
	ldr	x8, [x8, _spi_byte_dt_ids@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19]
	bl	_of_get_child_count
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [x19]
	mov	x1, #0
	bl	_of_get_next_child
	mov	x22, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_string
	ldr	w0, [x20, #48]
	ldr	x1, [sp, #8]
	mov	w2, #4
	bl	_strlcpy
	str	x19, [x20, #56]
	mov	x0, x20
	bl	_mutex_init
	ldr	x8, [x21]
Lloh10:
	adrp	x9, _LED_OFF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LED_OFF@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	mov	x21, x20
	str	x9, [x21, #8]!
	str	x8, [x21, #32]
	ldr	w9, [x20, #48]
	str	w9, [x21, #24]
	ldp	x8, x9, [x8]
	sub	x8, x9, x8
Lloh13:
	adrp	x9, _spi_byte_brightness_set_blocking@GOTPAGE
Lloh14:
	ldr	x9, [x9, _spi_byte_brightness_set_blocking@GOTPAGEOFF]
	stp	x8, x9, [x21, #8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_14
; %bb.4:
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.5:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.6:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
LBB0_9:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	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_12:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_13:
	ldr	x8, [x20, #16]
	str	x8, [x20, #8]
LBB0_14:
	ldr	x1, [x21]
	mov	x0, x21
	bl	_spi_byte_brightness_set_blocking
	mov	x0, x19
	mov	x1, x21
	bl	_devm_led_classdev_register
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_mutex_destroy
	b	LBB0_11
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"leds-spi-byte::"

	.comm	_spi_byte_dt_ids,4,2            ; @spi_byte_dt_ids
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Device must have exactly one LED sub-node."

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"label"

	.comm	_LED_OFF,8,3                    ; @LED_OFF
l_.str.3:                               ; @.str.3
	.asciz	"default-state"

l_.str.4:                               ; @.str.4
	.asciz	"on"

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

l_.str.6:                               ; @.str.6
	.asciz	"default-state can only be 'on' or 'off'"

	.no_dead_strip	_spi_byte_probe
.subsections_via_symbols
