	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl2563_probe
_tsl2563_probe:                         ## @tsl2563_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	%rdi, %r12
	movq	(%rdi), %rbx
	movq	8(%rdi), %r13
	movl	$0, -44(%rbp)
	movl	$56, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, 48(%r14)
	movq	%r14, %rdi
	callq	_tsl2563_detect
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_5:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_tsl2563_read_id
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r12, %rdi
	callq	_dev_err
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	40(%r14), %rdi
	callq	_mutex_init
	movabsq	$281470681743360, %rax          ## imm = 0xFFFF00000000
	movq	%rax, (%r14)
	movq	_tsl2563_gainlevel_table@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movl	$4, %edi
	callq	_TSL2563_INT_PERSIST
	movl	%eax, 32(%r14)
	movq	_CALIB_BASE_SYSFS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_tsl2563_calib_from_sysfs
	movq	%rax, 24(%r14)
	movl	(%rbx), %edi
	callq	_tsl2563_calib_from_sysfs
	movq	%rax, 16(%r14)
	testq	%r13, %r13
	je	LBB0_9
## %bb.8:
	movl	(%r13), %eax
	movl	%eax, 8(%r14)
	jmp	LBB0_12
LBB0_9:
	leaq	8(%r14), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	callq	_of_property_read_u32
	jmp	LBB0_12
LBB0_11:
	movl	$1, (%rdx)
LBB0_12:
	movl	-44(%rbp), %ecx
	movl	%ecx, %edx
	sarl	$4, %edx
	andl	$15, %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	movl	24(%r12), %eax
	movl	%eax, 32(%r15)
	movq	_tsl2563_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 28(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 24(%r15)
	movq	%r12, 16(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.16:
	movq	_tsl2563_info@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	%r15, (%rsp)
	movq	_tsl2563_event_handler@GOTPCREL(%rip), %rcx
	leaq	L_.str.4(%rip), %r9
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_14
## %bb.17:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_4
LBB0_13:
	movq	_tsl2563_info_no_irq@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
LBB0_14:
	movq	%r14, %rdi
	callq	_tsl2563_configure
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_4
LBB0_18:
	addq	$12, %r14
	movq	_tsl2563_poweroff_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %esi
	movq	%r14, %rdi
	callq	_schedule_delayed_work
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movl	%eax, %ebx
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_cancel_delayed_work_sync
	jmp	LBB0_21
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"detect error %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"read id error %d\n"

	.comm	_tsl2563_gainlevel_table,4,2    ## @tsl2563_gainlevel_table
	.comm	_CALIB_BASE_SYSFS,4,2           ## @CALIB_BASE_SYSFS
L_.str.2:                               ## @.str.2
	.asciz	"amstaos,cover-comp-gain"

L_.str.3:                               ## @.str.3
	.asciz	"model %d, rev. %d\n"

	.comm	_tsl2563_channels,4,2           ## @tsl2563_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_tsl2563_info,4,2               ## @tsl2563_info
	.comm	_tsl2563_info_no_irq,4,2        ## @tsl2563_info_no_irq
	.comm	_tsl2563_event_handler,4,2      ## @tsl2563_event_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.4:                               ## @.str.4
	.asciz	"tsl2563_event"

L_.str.5:                               ## @.str.5
	.asciz	"irq request error %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"configure error %d\n"

	.comm	_tsl2563_poweroff_work,4,2      ## @tsl2563_poweroff_work
	.comm	_HZ,4,2                         ## @HZ
L_.str.7:                               ## @.str.7
	.asciz	"iio registration error %d\n"

	.no_dead_strip	_tsl2563_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl2563_probe
_tsl2563_probe:                         ; @tsl2563_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldp	x23, x24, [x0]
	str	wzr, [sp, #12]
	mov	w1, #56
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_set_clientdata
	str	x19, [x21, #48]
	mov	x0, x21
	bl	_tsl2563_detect
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	neg	w2, w0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
	add	x1, sp, #12
	mov	x0, x21
	bl	_tsl2563_read_id
	cbz	w0, LBB0_8
; %bb.5:
	mov	x22, x0
	neg	w2, w0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	add	x0, x21, #40
	bl	_mutex_init
	movi	d0, #0x00ffff00000000
	str	d0, [x21]
Lloh7:
	adrp	x8, _tsl2563_gainlevel_table@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tsl2563_gainlevel_table@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x21, #36]
	mov	w0, #4
	bl	_TSL2563_INT_PERSIST
	str	w0, [x21, #32]
Lloh10:
	adrp	x22, _CALIB_BASE_SYSFS@GOTPAGE
Lloh11:
	ldr	x22, [x22, _CALIB_BASE_SYSFS@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_tsl2563_calib_from_sysfs
	str	x0, [x21, #24]
	ldr	w0, [x22]
	bl	_tsl2563_calib_from_sysfs
	str	x0, [x21, #16]
	cbz	x24, LBB0_10
; %bb.9:
	ldr	w8, [x24]
	str	w8, [x21, #8]
	b	LBB0_13
LBB0_10:
	add	x2, x21, #8
	cbz	x23, LBB0_12
; %bb.11:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_of_property_read_u32
	b	LBB0_13
LBB0_12:
	mov	w8, #1
	str	w8, [x2]
LBB0_13:
	ldr	w8, [sp, #12]
	asr	w2, w8, #4
	and	w3, w8, #0xf
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w8, [x19, #24]
Lloh16:
	adrp	x9, _tsl2563_channels@GOTPAGE
Lloh17:
	ldr	x9, [x9, _tsl2563_channels@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #28]
	bl	_ARRAY_SIZE
	str	w0, [x20, #24]
	str	x19, [x20, #16]
Lloh19:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_16
; %bb.14:
Lloh22:
	adrp	x8, _tsl2563_info@GOTPAGE
Lloh23:
	ldr	x8, [x8, _tsl2563_info@GOTPAGEOFF]
Lloh24:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
	str	x8, [x20]
Lloh26:
	ldr	w8, [x9]
Lloh27:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh30:
	adrp	x3, _tsl2563_event_handler@GOTPAGE
Lloh31:
	ldr	x3, [x3, _tsl2563_event_handler@GOTPAGEOFF]
Lloh32:
	adrp	x5, l_.str.4@PAGE
Lloh33:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_17
; %bb.15:
	mov	x22, x0
	neg	w2, w0
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_16:
Lloh36:
	adrp	x8, _tsl2563_info_no_irq@GOTPAGE
Lloh37:
	ldr	x8, [x8, _tsl2563_info_no_irq@GOTPAGEOFF]
	str	x8, [x20]
LBB0_17:
	mov	x0, x21
	bl	_tsl2563_configure
	cbz	w0, LBB0_19
; %bb.18:
	mov	x22, x0
	neg	w2, w0
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_19:
	add	x21, x21, #12
Lloh40:
	adrp	x8, _tsl2563_poweroff_work@GOTPAGE
Lloh41:
	ldr	x8, [x8, _tsl2563_poweroff_work@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_DELAYED_WORK
Lloh43:
	adrp	x8, _HZ@GOTPAGE
Lloh44:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	add	w1, w8, w8, lsl #2
	mov	x0, x21
	bl	_schedule_delayed_work
	mov	x0, x20
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.20:
	neg	w2, w22
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_cancel_delayed_work_sync
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"detect error %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"read id error %d\n"

	.comm	_tsl2563_gainlevel_table,4,2    ; @tsl2563_gainlevel_table
	.comm	_CALIB_BASE_SYSFS,4,2           ; @CALIB_BASE_SYSFS
l_.str.2:                               ; @.str.2
	.asciz	"amstaos,cover-comp-gain"

l_.str.3:                               ; @.str.3
	.asciz	"model %d, rev. %d\n"

	.comm	_tsl2563_channels,4,2           ; @tsl2563_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_tsl2563_info,4,2               ; @tsl2563_info
	.comm	_tsl2563_info_no_irq,4,2        ; @tsl2563_info_no_irq
	.comm	_tsl2563_event_handler,4,2      ; @tsl2563_event_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.4:                               ; @.str.4
	.asciz	"tsl2563_event"

l_.str.5:                               ; @.str.5
	.asciz	"irq request error %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"configure error %d\n"

	.comm	_tsl2563_poweroff_work,4,2      ; @tsl2563_poweroff_work
	.comm	_HZ,4,2                         ; @HZ
l_.str.7:                               ; @.str.7
	.asciz	"iio registration error %d\n"

	.no_dead_strip	_tsl2563_probe
.subsections_via_symbols
