	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlc4541_probe
_tlc4541_probe:                         ## @tlc4541_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, %rbx
	movl	$0, -44(%rbp)
	movl	$40, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	%rbx, 32(%r14)
	movq	_tlc4541_chip_info@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 32(%r15)
	movq	%rbx, 24(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	4(%r12,%r13,8), %eax
	movl	%eax, 12(%r15)
	movl	(%r12,%r13,8), %eax
	movl	%eax, 8(%r15)
	movq	_tlc4541_info@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_spi_write
	movq	8(%r14), %rsi
	movq	24(%r14), %rax
	movq	%rax, 8(%rsi)
	movl	$3, (%rsi)
	movl	$3, 20(%rsi)
	movq	%rax, 40(%rsi)
	movl	$2, 32(%rsi)
	leaq	16(%r14), %rdi
	movl	$3, %edx
	callq	_spi_message_init_with_transfers
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	_tlc4541_trigger_handler@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_iio_triggered_buffer_cleanup
LBB0_8:
	movl	(%r14), %edi
	callq	_regulator_disable
	movl	%r12d, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tlc4541_chip_info,8,3          ## @tlc4541_chip_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_tlc4541_info,4,2               ## @tlc4541_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

	.comm	_tlc4541_trigger_handler,4,2    ## @tlc4541_trigger_handler
	.no_dead_strip	_tlc4541_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlc4541_probe
_tlc4541_probe:                         ; @tlc4541_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	x21, x0
	str	wzr, [sp, #12]
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_spi_set_drvdata
	str	x21, [x20, #32]
Lloh0:
	adrp	x8, _tlc4541_chip_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tlc4541_chip_info@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	x23, [x0]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
	str	w8, [x19, #32]
	str	x21, [x19, #24]
Lloh3:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	d0, [x22, x23, lsl #3]
	str	d0, [x19, #8]
Lloh6:
	adrp	x8, _tlc4541_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tlc4541_info@GOTPAGEOFF]
	str	x8, [x19]
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #1
	bl	_spi_write
	ldr	x8, [x20, #24]
	ldr	x1, [x20, #8]
	str	x8, [x1, #8]
	mov	w9, #3
	str	w9, [x1]
	str	w9, [x1, #20]
	str	x8, [x1, #40]
	mov	w8, #2
	str	w8, [x1, #32]
	add	x0, x20, #16
	mov	w2, #3
	bl	_spi_message_init_with_transfers
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	w0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20]
	cbz	x8, LBB0_4
; %bb.2:
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_9
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_4:
	bl	_regulator_enable
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.5:
Lloh13:
	adrp	x2, _tlc4541_trigger_handler@GOTPAGE
Lloh14:
	ldr	x2, [x2, _tlc4541_trigger_handler@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_iio_triggered_buffer_cleanup
LBB0_8:
	ldr	w0, [x20]
	bl	_regulator_disable
LBB0_9:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tlc4541_chip_info,8,3          ; @tlc4541_chip_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_tlc4541_info,4,2               ; @tlc4541_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

	.comm	_tlc4541_trigger_handler,4,2    ; @tlc4541_trigger_handler
	.no_dead_strip	_tlc4541_probe
.subsections_via_symbols
