	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7793_probe
_ad7793_probe:                          ## @ad7793_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, %r13
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	cmpl	$0, 16(%r13)
	je	LBB0_4
## %bb.5:
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	leaq	16(%rax), %rdi
	movq	_ad7793_sigma_delta_info@GOTPCREL(%rip), %rcx
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_ad_sd_init
	movq	(%r15), %rax
	movq	_AD7793_REFSEL_INTERNAL@GOTPCREL(%rip), %rcx
	movl	$1170, %edx                     ## imm = 0x492
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_13:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_ad7793_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, 8(%r14)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_spi_set_drvdata
	movq	%r13, 32(%r12)
	movl	(%r13), %eax
	movl	%eax, 24(%r12)
	movq	%r13, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	8(%r14), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 8(%r12)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%r12)
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_ad_sd_setup_buffer_and_trigger
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ad7793_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movq	%r12, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_16
LBB0_17:
	movq	%r12, %rdi
	callq	_ad_sd_cleanup_buffer_and_trigger
LBB0_18:
	movq	(%r15), %rax
	movq	_AD7793_REFSEL_INTERNAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.19:
	movl	(%r14), %edi
	callq	_regulator_disable
	jmp	LBB0_20
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regulator_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_10
## %bb.21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.11:
	movl	(%r14), %edi
	callq	_regulator_get_voltage
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	shrq	$38, %rdx
	jmp	LBB0_13
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no platform data?\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"no IRQ?\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad7793_sigma_delta_info,4,2    ## @ad7793_sigma_delta_info
	.comm	_AD7793_REFSEL_INTERNAL,8,3     ## @AD7793_REFSEL_INTERNAL
L_.str.2:                               ## @.str.2
	.asciz	"refin"

	.comm	_ad7793_chip_info_tbl,8,3       ## @ad7793_chip_info_tbl
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.no_dead_strip	_ad7793_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7793_probe
_ad7793_probe:                          ; @ad7793_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	x22, x0
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_11
; %bb.1:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_12
; %bb.2:
	mov	x0, x22
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_16
; %bb.3:
	mov	x21, x0
	bl	_iio_priv
	mov	x20, x0
	add	x0, x0, #16
Lloh0:
	adrp	x3, _ad7793_sigma_delta_info@GOTPAGE
Lloh1:
	ldr	x3, [x3, _ad7793_sigma_delta_info@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x22
	bl	_ad_sd_init
	ldr	x8, [x19]
Lloh2:
	adrp	x25, _AD7793_REFSEL_INTERNAL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AD7793_REFSEL_INTERNAL@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.4:
	mov	w24, #1170
LBB0_5:
Lloh4:
	adrp	x8, _ad7793_chip_info_tbl@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ad7793_chip_info_tbl@GOTPAGEOFF]
Lloh6:
	ldr	x23, [x8]
	mov	x0, x22
	bl	_spi_get_device_id
	ldr	x8, [x0]
	mov	w9, #12
	madd	x8, x8, x9, x23
	str	x8, [x20, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_spi_set_drvdata
	str	x22, [x21, #32]
	ldr	w8, [x22]
	str	w8, [x21, #24]
	mov	x0, x22
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
	str	w8, [x21, #16]
Lloh7:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	ldr	w10, [x9, #8]
	stp	w10, w8, [x21, #8]
	ldr	d0, [x9]
	str	d0, [x21]
	mov	x0, x21
	bl	_ad_sd_setup_buffer_and_trigger
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_ad7793_setup
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_iio_device_register
	mov	x23, x0
	cbz	w0, LBB0_15
LBB0_8:
	mov	x0, x21
	bl	_ad_sd_cleanup_buffer_and_trigger
LBB0_9:
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.10:
	ldr	w0, [x20]
	bl	_regulator_disable
	b	LBB0_15
LBB0_11:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x22
	bl	_dev_err
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_15:
	mov	x0, x23
	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
LBB0_16:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_17:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_devm_regulator_get
	str	w0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20]
	cbz	x8, LBB0_19
; %bb.18:
	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_19:
	bl	_regulator_enable
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.20:
	ldr	w0, [x20]
	bl	_regulator_get_voltage
	mov	x23, x0
	tbnz	w0, #31, LBB0_9
; %bb.21:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w23, w8
	lsr	x24, x8, #38
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data?\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"no IRQ?\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad7793_sigma_delta_info,4,2    ; @ad7793_sigma_delta_info
	.comm	_AD7793_REFSEL_INTERNAL,8,3     ; @AD7793_REFSEL_INTERNAL
l_.str.2:                               ; @.str.2
	.asciz	"refin"

	.comm	_ad7793_chip_info_tbl,8,3       ; @ad7793_chip_info_tbl
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.no_dead_strip	_ad7793_probe
.subsections_via_symbols
