	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ads8688_probe
_ads8688_probe:                         ## @ads8688_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
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get_optional
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movq	_ADS8688_VREF_MV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movl	%eax, (%r14)
	movq	_ads8688_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
	leaq	(%r12,%rax,8), %rax
	movq	%rax, 16(%r14)
	movq	_SPI_MODE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r15, 24(%r14)
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r15, 32(%rbx)
	movl	(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	16(%r14), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_ads8688_info@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_ads8688_reset
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	_ads8688_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_iio_triggered_buffer_cleanup
	movl	%r15d, %r12d
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_3:
	movl	4(%r14), %edi
	callq	_regulator_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movl	4(%r14), %edi
	callq	_regulator_get_voltage
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movl	%r12d, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	jmp	LBB0_7
LBB0_8:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	%r13d, %r12d
LBB0_11:
	movl	4(%r14), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movl	4(%r14), %edi
	callq	_regulator_disable
LBB0_13:
	movl	%r12d, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

	.comm	_ADS8688_VREF_MV,4,2            ## @ADS8688_VREF_MV
	.comm	_ads8688_chip_info_tbl,8,3      ## @ads8688_chip_info_tbl
	.comm	_SPI_MODE_1,4,2                 ## @SPI_MODE_1
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ads8688_info,4,2               ## @ads8688_info
	.comm	_ads8688_trigger_handler,4,2    ## @ads8688_trigger_handler
L_.str.1:                               ## @.str.1
	.asciz	"iio triggered buffer setup failed\n"

	.no_dead_strip	_ads8688_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ads8688_probe
_ads8688_probe:                         ; @ads8688_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, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get_optional
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	w0, LBB0_7
; %bb.2:
Lloh2:
	adrp	x8, _ADS8688_VREF_MV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADS8688_VREF_MV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
LBB0_3:
	str	w8, [x19]
Lloh5:
	adrp	x8, _ads8688_chip_info_tbl@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ads8688_chip_info_tbl@GOTPAGEOFF]
Lloh7:
	ldr	x22, [x8]
	mov	x0, x20
	bl	_spi_get_device_id
	ldr	x8, [x0]
	add	x8, x22, x8, lsl #3
	str	x8, [x19, #16]
Lloh8:
	adrp	x8, _SPI_MODE_1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPI_MODE_1@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	mov	x0, x20
	mov	x1, x21
	bl	_spi_set_drvdata
	str	x20, [x19, #24]
	mov	x0, x20
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
	str	w8, [x21, #40]
	str	x20, [x21, #32]
	ldr	w8, [x20]
	str	w8, [x21, #24]
Lloh11:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	x8, [x19, #16]
	ldr	d0, [x8]
	str	d0, [x21, #8]
Lloh14:
	adrp	x8, _ads8688_info@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ads8688_info@GOTPAGEOFF]
	str	x8, [x21]
	mov	x0, x21
	bl	_ads8688_reset
	add	x0, x19, #8
	bl	_mutex_init
Lloh16:
	adrp	x8, _ads8688_trigger_handler@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ads8688_trigger_handler@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_10
; %bb.4:
	mov	x0, x21
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_13
; %bb.5:
	mov	x0, x21
	bl	_iio_triggered_buffer_cleanup
	b	LBB0_11
LBB0_6:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_regulator_enable
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.8:
	ldr	w0, [x19, #4]
	bl	_regulator_get_voltage
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w22, w8
	lsr	x8, x8, #38
	b	LBB0_3
LBB0_10:
	mov	x22, x0
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_11:
	ldr	w0, [x19, #4]
	bl	_IS_ERR
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	w0, [x19, #4]
	bl	_regulator_disable
LBB0_13:
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

	.comm	_ADS8688_VREF_MV,4,2            ; @ADS8688_VREF_MV
	.comm	_ads8688_chip_info_tbl,8,3      ; @ads8688_chip_info_tbl
	.comm	_SPI_MODE_1,4,2                 ; @SPI_MODE_1
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ads8688_info,4,2               ; @ads8688_info
	.comm	_ads8688_trigger_handler,4,2    ; @ads8688_trigger_handler
l_.str.1:                               ; @.str.1
	.asciz	"iio triggered buffer setup failed\n"

	.no_dead_strip	_ads8688_probe
.subsections_via_symbols
