	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5421_probe
_ad5421_probe:                          ## @ad5421_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_get_platdata
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r14, 8(%r12)
	movq	%r14, 32(%rbx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movq	_ad5421_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_ad5421_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%rbx)
	movq	_AD5421_CTRL_WATCHDOG_DISABLE@GOTPCREL(%rip), %rcx
	movq	_AD5421_CTRL_AUTO_FAULT_READBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	movl	8(%r15), %ecx
	movl	%ecx, 4(%r12)
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.4:
	movq	_AD5421_CTRL_PWR_DOWN_INT_VREF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	movq	_AD5421_CURRENT_RANGE_4mA_20mA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ad5421_update_ctrl
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:
	movq	_ad5421_fault_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	%rbx, (%rsp)
	leaq	L_.str.2(%rip), %r9
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"ad5421"

	.comm	_ad5421_info,4,2                ## @ad5421_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad5421_channels,4,2            ## @ad5421_channels
	.comm	_AD5421_CTRL_WATCHDOG_DISABLE,4,2 ## @AD5421_CTRL_WATCHDOG_DISABLE
	.comm	_AD5421_CTRL_AUTO_FAULT_READBACK,4,2 ## @AD5421_CTRL_AUTO_FAULT_READBACK
	.comm	_AD5421_CTRL_PWR_DOWN_INT_VREF,4,2 ## @AD5421_CTRL_PWR_DOWN_INT_VREF
	.comm	_AD5421_CURRENT_RANGE_4mA_20mA,4,2 ## @AD5421_CURRENT_RANGE_4mA_20mA
	.comm	_ad5421_fault_handler,4,2       ## @ad5421_fault_handler
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"ad5421 fault"

	.no_dead_strip	_ad5421_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5421_probe
_ad5421_probe:                          ; @ad5421_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
	bl	_dev_get_platdata
	mov	x21, x0
	mov	x0, x19
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	str	x19, [x22, #8]
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x20]
Lloh2:
	adrp	x8, _ad5421_info@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ad5421_info@GOTPAGEOFF]
	stp	x8, x19, [x20, #24]
Lloh4:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _ad5421_channels@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ad5421_channels@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #12]
	bl	_ARRAY_SIZE
	str	w0, [x20, #8]
Lloh10:
	adrp	x8, _AD5421_CTRL_WATCHDOG_DISABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AD5421_CTRL_WATCHDOG_DISABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _AD5421_CTRL_AUTO_FAULT_READBACK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AD5421_CTRL_AUTO_FAULT_READBACK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x22]
	cbz	x21, LBB0_5
; %bb.2:
	ldr	w9, [x21, #8]
	str	w9, [x22, #4]
	ldr	x9, [x21]
	cbz	x9, LBB0_6
; %bb.3:
Lloh16:
	adrp	x9, _AD5421_CTRL_PWR_DOWN_INT_VREF@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AD5421_CTRL_PWR_DOWN_INT_VREF@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x22]
	b	LBB0_6
LBB0_4:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
Lloh24:
	adrp	x8, _AD5421_CURRENT_RANGE_4mA_20mA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AD5421_CURRENT_RANGE_4mA_20mA@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x22, #4]
LBB0_6:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_ad5421_update_ctrl
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_9
; %bb.7:
Lloh27:
	adrp	x8, _ad5421_fault_handler@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ad5421_fault_handler@GOTPAGEOFF]
Lloh29:
	adrp	x9, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
Lloh32:
	ldr	w8, [x9]
Lloh33:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh36:
	adrp	x5, l_.str.2@PAGE
Lloh37:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_9
LBB0_8:
	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
LBB0_9:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"ad5421"

	.comm	_ad5421_info,4,2                ; @ad5421_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad5421_channels,4,2            ; @ad5421_channels
	.comm	_AD5421_CTRL_WATCHDOG_DISABLE,4,2 ; @AD5421_CTRL_WATCHDOG_DISABLE
	.comm	_AD5421_CTRL_AUTO_FAULT_READBACK,4,2 ; @AD5421_CTRL_AUTO_FAULT_READBACK
	.comm	_AD5421_CTRL_PWR_DOWN_INT_VREF,4,2 ; @AD5421_CTRL_PWR_DOWN_INT_VREF
	.comm	_AD5421_CURRENT_RANGE_4mA_20mA,4,2 ; @AD5421_CURRENT_RANGE_4mA_20mA
	.comm	_ad5421_fault_handler,4,2       ; @ad5421_fault_handler
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"ad5421 fault"

	.no_dead_strip	_ad5421_probe
.subsections_via_symbols
