	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7949_spi_probe
_ad7949_spi_probe:                      ## @ad7949_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
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 32(%rax)
	movl	(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	_ad7949_spi_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_ad7949_adc_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%rbx, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rbx, 24(%rax)
	movq	%r15, 16(%rax)
	movq	_ad7949_adc_spec@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
	movl	4(%r12,%rax,8), %ecx
	movl	%ecx, (%rbx)
	movl	(%r12,%rax,8), %eax
	movl	%eax, 8(%r14)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_3:
	movl	(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r14, %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_ad7949_spi_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_10
LBB0_4:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_7:
	movq	%rbx, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
LBB0_10:
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r13, %rdi
	callq	_mutex_destroy
	movl	(%r14), %edi
	callq	_regulator_disable
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can not allocate iio device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad7949_spi_info,4,2            ## @ad7949_spi_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad7949_adc_channels,4,2        ## @ad7949_adc_channels
	.comm	_ad7949_adc_spec,8,3            ## @ad7949_adc_spec
L_.str.1:                               ## @.str.1
	.asciz	"vref"

L_.str.2:                               ## @.str.2
	.asciz	"fail to request regulator\n"

L_.str.3:                               ## @.str.3
	.asciz	"fail to enable regulator\n"

L_.str.4:                               ## @.str.4
	.asciz	"enable to init this device: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"fail to register iio device: %d\n"

	.no_dead_strip	_ad7949_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7949_spi_probe
_ad7949_spi_probe:                      ; @ad7949_spi_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	x19, x0
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	str	x19, [x0, #32]
	ldr	w8, [x19]
	str	w8, [x0, #24]
Lloh0:
	adrp	x8, _ad7949_spi_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad7949_spi_info@GOTPAGEOFF]
	str	x8, [x0, #16]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
	str	w8, [x21, #12]
Lloh2:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ad7949_adc_channels@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ad7949_adc_channels@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_spi_set_drvdata
	mov	x0, x21
	bl	_iio_priv
	mov	x20, x0
	stp	x19, x21, [x0, #16]
Lloh8:
	adrp	x8, _ad7949_adc_spec@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ad7949_adc_spec@GOTPAGEOFF]
Lloh10:
	ldr	x22, [x8]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	x8, [x0]
	add	x8, x22, x8, lsl #3
	ldp	w8, w9, [x8]
	str	w9, [x21]
	str	w8, [x20, #8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	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
	b	_PTR_ERR
LBB0_3:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_4:
	ldr	w0, [x20]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_7
; %bb.5:
	add	x23, x20, #4
	mov	x0, x23
	bl	_mutex_init
	mov	x0, x20
	bl	_ad7949_spi_init
	cbz	w0, LBB0_8
; %bb.6:
	mov	x22, x0
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_7:
	mov	x22, x0
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_8:
	mov	x0, x21
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.9:
	str	x22, [sp]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_10:
	mov	x0, x23
	bl	_mutex_destroy
	ldr	w0, [x20]
	bl	_regulator_disable
LBB0_11:
	mov	x0, x22
	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	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can not allocate iio device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad7949_spi_info,4,2            ; @ad7949_spi_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad7949_adc_channels,4,2        ; @ad7949_adc_channels
	.comm	_ad7949_adc_spec,8,3            ; @ad7949_adc_spec
l_.str.1:                               ; @.str.1
	.asciz	"vref"

l_.str.2:                               ; @.str.2
	.asciz	"fail to request regulator\n"

l_.str.3:                               ; @.str.3
	.asciz	"fail to enable regulator\n"

l_.str.4:                               ; @.str.4
	.asciz	"enable to init this device: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"fail to register iio device: %d\n"

	.no_dead_strip	_ad7949_spi_probe
.subsections_via_symbols
