	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad799x_probe
_ad799x_probe:                          ## @ad799x_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_ad799x_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	12(%rdi), %r15
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	cmpq	$0, (%r13)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,4), %rax
	cmpq	$0, 32(%rcx,%rax,8)
	je	LBB0_5
## %bb.4:
	leaq	(%rcx,%rax,8), %rax
	addq	$24, %rax
	jmp	LBB0_6
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,4), %rax
	leaq	(%rcx,%rax,8), %rax
	addq	$8, %rax
LBB0_6:
	movq	%rax, 32(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	16(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_22
LBB0_7:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	callq	_regulator_enable
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_devm_regulator_get
	movq	%rbx, %r15
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	24(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_21
LBB0_10:
	callq	_regulator_enable
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.11:
	movq	%r13, 40(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r12)
	movl	12(%r13), %eax
	movl	%eax, 32(%r12)
	movl	8(%r14), %eax
	movq	%rbx, %r14
	movl	%eax, 24(%r12)
	movq	32(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 16(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r12)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%r12)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rcx,4), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rcx,8), %ecx
	movl	%ecx, (%r12)
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ad799x_write_config
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	callq	_ad799x_read_config
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_20
## %bb.14:
	movl	%r15d, 8(%r14)
	movq	_ad799x_trigger_handler@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.15:
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	jle	LBB0_17
## %bb.16:
	movq	_ad799x_event_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movl	8(%r13), %r9d
	movq	%r12, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_19
LBB0_17:
	movq	%r12, %rdi
	callq	_iio_device_register
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_18
LBB0_19:
	movq	%r12, %rdi
	callq	_iio_triggered_buffer_cleanup
	jmp	LBB0_20
LBB0_12:
	movl	%eax, %r15d
LBB0_20:
	movq	24(%rbx), %rdi
	callq	_regulator_disable
LBB0_21:
	movq	16(%rbx), %rdi
	callq	_regulator_disable
LBB0_22:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%r15d, %r15d
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ad799x_chip_info_tbl,8,3       ## @ad799x_chip_info_tbl
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcc"

L_.str.1:                               ## @.str.1
	.asciz	"vref"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad799x_trigger_handler,4,2     ## @ad799x_trigger_handler
	.comm	_ad799x_event_handler,4,2       ## @ad799x_event_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.no_dead_strip	_ad799x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad799x_probe
_ad799x_probe:                          ; @ad799x_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ad799x_chip_info_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad799x_chip_info_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	ldr	x26, [x1]
	add	x22, x0, #12
	mov	x0, x22
	mov	w1, #48
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_clientdata
	ldr	x8, [x23]
	str	x8, [x19]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w8, #40
	madd	x8, x26, x8, x25
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w8, #40
	madd	x8, x26, x8, x25
	add	x8, x8, #24
	b	LBB0_5
LBB0_4:
	mov	w8, #40
	madd	x8, x26, x8, x25
	add	x8, x8, #8
LBB0_5:
	str	x8, [x19, #32]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_devm_regulator_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #16]
	cbz	x8, LBB0_8
; %bb.6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_22
LBB0_8:
	bl	_regulator_enable
	mov	x24, x0
	cbnz	w0, LBB0_22
; %bb.9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_devm_regulator_get
	str	x0, [x19, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #24]
	cbz	x8, LBB0_11
; %bb.10:
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_21
LBB0_11:
	bl	_regulator_enable
	mov	x24, x0
	cbnz	w0, LBB0_21
; %bb.12:
	str	x21, [x19, #40]
	str	x22, [x20, #40]
	ldr	w8, [x21, #12]
	str	w8, [x20, #32]
	ldr	w8, [x23, #8]
	str	w8, [x20, #24]
	ldr	x8, [x19, #32]
	ldr	x9, [x8, #8]
	str	x9, [x20, #16]
Lloh10:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	str	w9, [x20, #8]
	mov	w9, #40
	mul	x9, x26, x9
	ldr	w9, [x25, x9]
	ldp	w1, w10, [x8]
	stp	w9, w10, [x20]
	mov	x0, x19
	bl	_ad799x_write_config
	tbnz	w0, #31, LBB0_19
; %bb.13:
	mov	x0, x19
	bl	_ad799x_read_config
	mov	x24, x0
	tbnz	w0, #31, LBB0_20
; %bb.14:
	str	w24, [x19, #8]
Lloh13:
	adrp	x2, _ad799x_trigger_handler@GOTPAGE
Lloh14:
	ldr	x2, [x2, _ad799x_trigger_handler@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	mov	x24, x0
	cbnz	w0, LBB0_20
; %bb.15:
	ldr	x1, [x21]
	cmp	x1, #1
	b.lt	LBB0_17
; %bb.16:
Lloh15:
	adrp	x8, _ad799x_event_handler@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ad799x_event_handler@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w4, w9, w8
	ldr	w5, [x21, #8]
	mov	x0, x22
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	mov	x24, x0
	cbnz	w0, LBB0_18
LBB0_17:
	mov	x0, x20
	bl	_iio_device_register
	mov	x24, x0
	cbz	w0, LBB0_22
LBB0_18:
	mov	x0, x20
	bl	_iio_triggered_buffer_cleanup
	b	LBB0_20
LBB0_19:
	mov	x24, x0
LBB0_20:
	ldr	x0, [x19, #24]
	bl	_regulator_disable
LBB0_21:
	ldr	x0, [x19, #16]
	bl	_regulator_disable
LBB0_22:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ad799x_chip_info_tbl,8,3       ; @ad799x_chip_info_tbl
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcc"

l_.str.1:                               ; @.str.1
	.asciz	"vref"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad799x_trigger_handler,4,2     ; @ad799x_trigger_handler
	.comm	_ad799x_event_handler,4,2       ; @ad799x_event_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.no_dead_strip	_ad799x_probe
.subsections_via_symbols
