	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5449_spi_probe
_ad5449_spi_probe:                      ## @ad5449_spi_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
	movq	(%rdi), %r13
	callq	_spi_get_device_id
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	$32, %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, %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movq	_ad5449_chip_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rdx
	movq	%rdx, 16(%r12)
	movq	%r15, 24(%r12)
	cmpl	$0, (%rax,%rcx,8)
	je	LBB0_19
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_ad5449_vref_name
	movq	8(%r12), %rdx
	movl	%eax, (%rdx,%rbx,4)
	incq	%rbx
	movq	16(%r12), %rax
	movl	(%rax), %esi
	cmpq	%rsi, %rbx
	jb	LBB0_4
## %bb.5:
	movq	%r13, %rbx
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_19:
	movq	%r13, %rbx
	movq	8(%r12), %rdx
	xorl	%esi, %esi
LBB0_6:
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_devm_regulator_bulk_get
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.7:
	movq	8(%r12), %rsi
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_regulator_bulk_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:
	movq	%r15, 32(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_ad5449_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	16(%r12), %rax
	movl	16(%rax), %ecx
	movl	%ecx, 4(%r14)
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	cmpq	$0, 8(%rax)
	je	LBB0_15
## %bb.9:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.11:
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	je	LBB0_13
## %bb.12:
	movq	_AD5449_CTRL_HCLR_TO_MIDSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	movl	(%rbx), %esi
	movq	_AD5449_CTRL_SDO_OFFSET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%esi, %edx
	shll	%cl, %edx
	orl	%eax, %edx
	movq	_AD5449_SDO_DISABLED@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %esi
	setne	%al
	jmp	LBB0_14
LBB0_10:
	xorl	%edx, %edx
	movl	$1, %eax
LBB0_14:
	movl	%eax, (%r12)
	movq	_AD5449_CMD_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ad5449_write
LBB0_15:
	movq	%r14, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %r13d
	movq	8(%r12), %rsi
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_regulator_bulk_disable
	jmp	LBB0_18
LBB0_16:
	xorl	%r13d, %r13d
LBB0_18:
	movl	%r13d, %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	_ad5449_chip_info,8,3           ## @ad5449_chip_info
	.comm	_ad5449_info,4,2                ## @ad5449_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_AD5449_CTRL_HCLR_TO_MIDSCALE,4,2 ## @AD5449_CTRL_HCLR_TO_MIDSCALE
	.comm	_AD5449_CTRL_SDO_OFFSET,4,2     ## @AD5449_CTRL_SDO_OFFSET
	.comm	_AD5449_SDO_DISABLED,4,2        ## @AD5449_SDO_DISABLED
	.comm	_AD5449_CMD_CTRL,4,2            ## @AD5449_CMD_CTRL
	.no_dead_strip	_ad5449_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5449_spi_probe
_ad5449_spi_probe:                      ; @ad5449_spi_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x24, [x0]
	bl	_spi_get_device_id
	mov	x22, x0
	mov	x0, x21
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_spi_set_drvdata
Lloh0:
	adrp	x8, _ad5449_chip_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad5449_chip_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x22]
	mov	w10, #24
	madd	x8, x9, x10, x8
	stp	x8, x21, [x20, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_ad5449_vref_name
	ldp	x2, x8, [x20, #8]
	str	w0, [x2, x23, lsl #2]
	add	x23, x23, #1
	ldr	w1, [x8]
	cmp	x23, x1
	b.lo	LBB0_3
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_5:
	mov	w1, #0
	ldr	x2, [x20, #8]
LBB0_6:
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_devm_regulator_bulk_get
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.7:
	ldp	x1, x8, [x20, #8]
	ldr	w0, [x8]
	bl	_regulator_bulk_enable
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.8:
	str	x21, [x19, #32]
	ldr	w8, [x22, #8]
Lloh6:
	adrp	x9, _ad5449_info@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ad5449_info@GOTPAGEOFF]
	str	w8, [x19, #24]
	str	x9, [x19, #16]
Lloh8:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x8, [x20, #16]
	ldr	w9, [x8, #16]
	ldr	w10, [x8]
	stp	w10, w9, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
; %bb.9:
	cbz	x24, LBB0_11
; %bb.10:
	ldr	x8, [x24, #8]
Lloh11:
	adrp	x9, _AD5449_CTRL_HCLR_TO_MIDSCALE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AD5449_CTRL_HCLR_TO_MIDSCALE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	ldr	w9, [x24]
Lloh14:
	adrp	x10, _AD5449_CTRL_SDO_OFFSET@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AD5449_CTRL_SDO_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w2, w10, w8
Lloh17:
	adrp	x8, _AD5449_SDO_DISABLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AD5449_SDO_DISABLED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w9, w8
	cset	w8, ne
	b	LBB0_12
LBB0_11:
	mov	w2, #0
	mov	w8, #1
LBB0_12:
	str	w8, [x20]
Lloh20:
	adrp	x8, _AD5449_CMD_CTRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AD5449_CMD_CTRL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ad5449_write
LBB0_13:
	mov	x0, x19
	bl	_iio_device_register
	mov	x23, x0
	cbz	w0, LBB0_15
; %bb.14:
	ldp	x1, x8, [x20, #8]
	ldr	w0, [x8]
	bl	_regulator_bulk_disable
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad5449_chip_info,8,3           ; @ad5449_chip_info
	.comm	_ad5449_info,4,2                ; @ad5449_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_AD5449_CTRL_HCLR_TO_MIDSCALE,4,2 ; @AD5449_CTRL_HCLR_TO_MIDSCALE
	.comm	_AD5449_CTRL_SDO_OFFSET,4,2     ; @AD5449_CTRL_SDO_OFFSET
	.comm	_AD5449_SDO_DISABLED,4,2        ; @AD5449_SDO_DISABLED
	.comm	_AD5449_CMD_CTRL,4,2            ; @AD5449_CMD_CTRL
	.no_dead_strip	_ad5449_spi_probe
.subsections_via_symbols
