	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5758_probe
_ad5758_probe:                          ## @ad5758_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$24, %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, %r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_spi_set_drvdata
	movq	%r14, 8(%r15)
	leaq	16(%r15), %rdi
	callq	_mutex_init
	movq	%r14, 32(%r12)
	movq	%r14, %rdi
	callq	_spi_get_device_id
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_ad5758_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	$1, (%r12)
	movq	%r15, %rdi
	callq	_ad5758_parse_dt
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	movq	_AD5758_DCDC_MODE_DPC_VOLTAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_ad5758_voltage_ch@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_ad5758_current_ch@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%r15, %rdi
	callq	_ad5758_init
	testl	%eax, %eax
	js	LBB0_8
## %bb.10:
	movq	8(%r15), %rdi
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad5758_info,4,2                ## @ad5758_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_AD5758_DCDC_MODE_DPC_VOLTAGE,8,3 ## @AD5758_DCDC_MODE_DPC_VOLTAGE
	.comm	_ad5758_voltage_ch,4,2          ## @ad5758_voltage_ch
	.comm	_ad5758_current_ch,4,2          ## @ad5758_current_ch
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AD5758 init failed\n"

	.no_dead_strip	_ad5758_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5758_probe
_ad5758_probe:                          ; @ad5758_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	x19, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	str	x19, [x21, #8]
	add	x0, x21, #16
	bl	_mutex_init
	str	x19, [x20, #32]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0]
	str	w8, [x20, #24]
Lloh0:
	adrp	x8, _ad5758_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad5758_info@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh2:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x21
	bl	_ad5758_parse_dt
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _AD5758_DCDC_MODE_DPC_VOLTAGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AD5758_DCDC_MODE_DPC_VOLTAGE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _ad5758_voltage_ch@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ad5758_voltage_ch@GOTPAGEOFF]
Lloh10:
	adrp	x11, _ad5758_current_ch@GOTPAGE
Lloh11:
	ldr	x11, [x11, _ad5758_current_ch@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x20, #4]
	mov	x0, x21
	bl	_ad5758_init
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	x0, [x21, #8]
	mov	x1, x20
	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
	b	_devm_iio_device_register
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_5:
	mov	x22, x0
	b	LBB0_7
LBB0_6:
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad5758_info,4,2                ; @ad5758_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_AD5758_DCDC_MODE_DPC_VOLTAGE,8,3 ; @AD5758_DCDC_MODE_DPC_VOLTAGE
	.comm	_ad5758_voltage_ch,4,2          ; @ad5758_voltage_ch
	.comm	_ad5758_current_ch,4,2          ; @ad5758_current_ch
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AD5758 init failed\n"

	.no_dead_strip	_ad5758_probe
.subsections_via_symbols
