	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tca6507_probe
_tca6507_probe:                         ## @tca6507_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	movq	%rdi, %r14
	callq	_dev_get_platdata
	movq	%rax, %r15
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movl	(%r15), %eax
	movq	_NUM_LEDS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_tca6507_led_dt_init
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.25:
	movq	_NUM_LEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movq	%r14, 24(%rax)
	leaq	16(%rax), %rbx
	movq	_tca6507_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	%r13, %rdi
	addq	$20, %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	movq	_NUM_LEDS@GOTPCREL(%rip), %rsi
	cmpl	$0, (%rsi)
	jle	LBB0_9
## %bb.10:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$32, %r14d
	movl	$16, %r15d
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r12
	movslq	(%rsi), %rax
	addq	$40, %r14
	addq	$24, %r15
	cmpq	%rax, %r12
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	%r13, (%rax,%r14)
	movl	%r12d, -32(%rax,%r14)
	movq	8(%rdx), %rcx
	movq	-8(%rcx,%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, (%rcx,%r15)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, %rbx
	leaq	(%rax,%r14), %rsi
	addq	$-24, %rsi
	movq	%rdi, -24(%rax,%r14)
	movl	-16(%rcx,%r15), %ecx
	movl	%ecx, -8(%rax,%r14)
	movq	_tca6507_brightness_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -12(%rax,%r14)
	movq	_tca6507_blink_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -16(%rax,%r14)
	movl	$-1, -28(%rax,%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_led_classdev_register
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, %eax
	jns	LBB0_14
	jmp	LBB0_18
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_9:
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_16:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_tca6507_probe_gpios
	testl	%eax, %eax
	je	LBB0_17
LBB0_18:
	testl	%r12d, %r12d
	je	LBB0_24
## %bb.19:
	movl	%eax, %r14d
	movl	%r12d, %eax
	leaq	(%rax,%rax,4), %rax
	leaq	-32(,%rax,8), %rbx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	addq	$-40, %rbx
	cmpq	$-32, %rbx
	je	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	cmpq	$0, (%rdi,%rbx)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	addq	%rbx, %rdi
	callq	_led_classdev_unregister
	jmp	LBB0_22
LBB0_23:
	movl	%r14d, %eax
	jmp	LBB0_24
LBB0_17:
	movl	$127, (%r13)
	movq	%rbx, %rdi
	callq	_schedule_work
	xorl	%eax, %eax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_EIO,4,2                        ## @EIO
	.comm	_NUM_LEDS,4,2                   ## @NUM_LEDS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Need %d entries in platform-data list\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tca6507_work,4,2               ## @tca6507_work
	.comm	_tca6507_brightness_set,4,2     ## @tca6507_brightness_set
	.comm	_tca6507_blink_set,4,2          ## @tca6507_blink_set
	.no_dead_strip	_tca6507_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tca6507_probe
_tca6507_probe:                         ; @tca6507_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_dev_get_platdata
	mov	x20, x0
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_check_functionality
	cbz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x24, _NUM_LEDS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NUM_LEDS@GOTPAGEOFF]
	cbz	x20, LBB0_3
; %bb.2:
	ldr	w8, [x20]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_tca6507_led_dt_init
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w2, [x24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_5:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.7:
	mov	x21, x0
	str	x19, [x0, #24]
	add	x22, x0, #16
Lloh12:
	adrp	x8, _tca6507_work@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tca6507_work@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_INIT_WORK
	add	x0, x21, #20
	bl	_spin_lock_init
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_set_clientdata
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.8:
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	mov	x26, #0
	mov	x25, #0
	mov	w27, #32
Lloh15:
	adrp	x22, _tca6507_blink_set@GOTPAGE
Lloh16:
	ldr	x22, [x22, _tca6507_blink_set@GOTPAGEOFF]
	mov	w28, #-1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24]
	add	x27, x27, #40
	add	x26, x26, #24
	cmp	x25, x8
	b.ge	LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x9, x8, x27
	str	x21, [x9]
	stur	w25, [x9, #-32]
	ldr	x9, [x20, #8]
	add	x11, x9, x26
	ldr	x10, [x11, #8]
	cbz	x10, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w11, [x11, #16]
	cbnz	w11, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, x8, x27
	str	x10, [x1, #-24]!
	ldr	w8, [x9, x26]
	str	w8, [x1, #16]
Lloh17:
	adrp	x8, _tca6507_brightness_set@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tca6507_brightness_set@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x1, #12]
	ldr	w8, [x22]
	str	w8, [x1, #8]
	stur	w28, [x1, #-4]
	mov	x0, x19
	bl	_led_classdev_register
	tbz	w0, #31, LBB0_9
; %bb.13:
	mov	x23, x0
	b	LBB0_20
LBB0_14:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_19
LBB0_18:
	mov	w25, #0
LBB0_19:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_tca6507_probe_gpios
	mov	x23, x0
	cbz	w0, LBB0_25
LBB0_20:
	cbz	w25, LBB0_16
; %bb.21:
	mov	w8, #40
	mov	x9, #-32
	umaddl	x19, w25, w8, x9
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	sub	x19, x19, #40
	cmn	x19, #32
	b.eq	LBB0_16
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x19
	ldr	x8, [x0]
	cbz	x8, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	bl	_led_classdev_unregister
	b	LBB0_22
LBB0_25:
	mov	w8, #127
	str	w8, [x21]
	mov	x0, x22
	bl	_schedule_work
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_EIO,4,2                        ; @EIO
	.comm	_NUM_LEDS,4,2                   ; @NUM_LEDS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Need %d entries in platform-data list\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tca6507_work,4,2               ; @tca6507_work
	.comm	_tca6507_brightness_set,4,2     ; @tca6507_brightness_set
	.comm	_tca6507_blink_set,4,2          ; @tca6507_blink_set
	.no_dead_strip	_tca6507_probe
.subsections_via_symbols
