	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsl4531_probe
_tsl4531_probe:                         ## @tsl4531_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, (%r15)
	leaq	8(%r15), %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	callq	_tsl4531_check_id
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	(%r15), %rdi
	movq	_TSL4531_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TSL4531_MODE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	movq	_TSL4531_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TSL4531_TCNTRL_400MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	%r12, 24(%r14)
	movq	_tsl4531_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_tsl4531_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r14)
	movq	_TSL4531_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iio_device_register            ## TAILCALL
LBB0_6:
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no TSL4531 sensor\n"

	.comm	_TSL4531_CONTROL,4,2            ## @TSL4531_CONTROL
	.comm	_TSL4531_MODE_NORMAL,4,2        ## @TSL4531_MODE_NORMAL
	.comm	_TSL4531_CONFIG,4,2             ## @TSL4531_CONFIG
	.comm	_TSL4531_TCNTRL_400MS,4,2       ## @TSL4531_TCNTRL_400MS
	.comm	_tsl4531_info,4,2               ## @tsl4531_info
	.comm	_tsl4531_channels,4,2           ## @tsl4531_channels
	.comm	_TSL4531_DRV_NAME,4,2           ## @TSL4531_DRV_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.no_dead_strip	_tsl4531_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsl4531_probe
_tsl4531_probe:                         ; @tsl4531_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	mov	x0, x21
	str	x20, [x0], #8
	bl	_mutex_init
	mov	x0, x20
	bl	_tsl4531_check_id
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_8
LBB0_3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_4:
	ldr	x0, [x21]
Lloh5:
	adrp	x8, _TSL4531_CONTROL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TSL4531_CONTROL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _TSL4531_MODE_NORMAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TSL4531_MODE_NORMAL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	x0, [x21]
Lloh11:
	adrp	x8, _TSL4531_CONFIG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TSL4531_CONFIG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _TSL4531_TCNTRL_400MS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TSL4531_TCNTRL_400MS@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_7
; %bb.6:
Lloh17:
	adrp	x8, _tsl4531_info@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tsl4531_info@GOTPAGEOFF]
	stp	x8, x20, [x19, #16]
Lloh19:
	adrp	x8, _tsl4531_channels@GOTPAGE
Lloh20:
	ldr	x8, [x8, _tsl4531_channels@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	str	w0, [x19, #12]
	bl	_ARRAY_SIZE
	str	w0, [x19, #8]
Lloh22:
	adrp	x8, _TSL4531_DRV_NAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TSL4531_DRV_NAME@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iio_device_register
LBB0_7:
	mov	x22, x0
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no TSL4531 sensor\n"

	.comm	_TSL4531_CONTROL,4,2            ; @TSL4531_CONTROL
	.comm	_TSL4531_MODE_NORMAL,4,2        ; @TSL4531_MODE_NORMAL
	.comm	_TSL4531_CONFIG,4,2             ; @TSL4531_CONFIG
	.comm	_TSL4531_TCNTRL_400MS,4,2       ; @TSL4531_TCNTRL_400MS
	.comm	_tsl4531_info,4,2               ; @tsl4531_info
	.comm	_tsl4531_channels,4,2           ; @tsl4531_channels
	.comm	_TSL4531_DRV_NAME,4,2           ; @TSL4531_DRV_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.no_dead_strip	_tsl4531_probe
.subsections_via_symbols
