	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5504_probe
_ad5504_probe:                          ## @ad5504_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	8(%rdi), %r15
	movq	8(%rdi), %rbx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_IS_ERR
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_spi_set_drvdata
	movq	%r13, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	%r14, %rdi
	callq	_regulator_get_voltage
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_14
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	movq	%r12, 8(%r14)
	movq	%r15, 32(%r13)
	movq	%r12, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 24(%r13)
	movq	_ad5504_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movq	8(%r14), %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
	movq	_ID_AD5501@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	leal	(%rdx,%rdx,2), %eax
	incl	%eax
	movl	%eax, (%r13)
	movq	_ad5504_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	(%r12), %r12
	testq	%r12, %r12
	je	LBB0_12
## %bb.11:
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	8(%r14), %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %r9d
	movq	%r13, (%rsp)
	movq	_ad5504_event_handler@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	callq	_devm_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
LBB0_12:
	movq	%r13, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
LBB0_14:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_regulator_disable
	jmp	LBB0_16
LBB0_13:
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcc"

L_.str.1:                               ## @.str.1
	.asciz	"reference voltage unspecified\n"

	.comm	_ad5504_info,4,2                ## @ad5504_info
	.comm	_ID_AD5501,8,3                  ## @ID_AD5501
	.comm	_ad5504_channels,4,2            ## @ad5504_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad5504_event_handler,4,2       ## @ad5504_event_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.no_dead_strip	_ad5504_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5504_probe
_ad5504_probe:                          ; @ad5504_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
	mov	x21, x0
	ldr	x25, [x21, #8]!
	mov	x0, x21
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	mov	x19, x0
	bl	_IS_ERR
	cbz	w0, LBB0_6
; %bb.2:
	mov	w24, #0
LBB0_3:
	mov	x0, x22
	mov	x1, x20
	bl	_spi_set_drvdata
	mov	x0, x20
	bl	_iio_priv
	mov	x23, x0
	cbz	w24, LBB0_8
; %bb.4:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w24, w8
	lsr	x8, x8, #38
	str	w8, [x23]
	b	LBB0_11
LBB0_5:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_6:
	mov	x0, x19
	bl	_regulator_enable
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.7:
	mov	x0, x19
	bl	_regulator_get_voltage
	mov	x24, x0
	tbz	w0, #31, LBB0_3
	b	LBB0_14
LBB0_8:
	cbz	x25, LBB0_10
; %bb.9:
	ldr	w8, [x25]
	str	w8, [x23]
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
LBB0_11:
	stp	x22, x19, [x23, #8]
	str	x21, [x20, #32]
	mov	x0, x22
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
	str	w8, [x20, #24]
Lloh7:
	adrp	x8, _ad5504_info@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ad5504_info@GOTPAGEOFF]
	str	x8, [x20, #16]
	ldr	x0, [x23, #8]
	bl	_spi_get_device_id
	ldr	x8, [x0]
Lloh9:
	adrp	x9, _ID_AD5501@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ID_AD5501@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #4
	csinc	w8, w8, wzr, ne
	str	w8, [x20]
Lloh12:
	adrp	x8, _ad5504_channels@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ad5504_channels@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #4]
	ldr	x22, [x22]
	cbz	x22, LBB0_13
; %bb.12:
Lloh18:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w24, w9, w8
	ldr	x0, [x23, #8]
	bl	_spi_get_device_id
	ldr	w5, [x0, #8]
Lloh24:
	adrp	x3, _ad5504_event_handler@GOTPAGE
Lloh25:
	ldr	x3, [x3, _ad5504_event_handler@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	mov	x4, x24
	mov	x6, x20
	bl	_devm_request_threaded_irq
	mov	x24, x0
	cbnz	w0, LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_iio_device_register
	mov	x24, x0
	cbz	w0, LBB0_16
LBB0_14:
	mov	x0, x19
	bl	_IS_ERR
	cbnz	w0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_regulator_disable
LBB0_16:
	mov	x0, x24
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcc"

l_.str.1:                               ; @.str.1
	.asciz	"reference voltage unspecified\n"

	.comm	_ad5504_info,4,2                ; @ad5504_info
	.comm	_ID_AD5501,8,3                  ; @ID_AD5501
	.comm	_ad5504_channels,4,2            ; @ad5504_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad5504_event_handler,4,2       ; @ad5504_event_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.no_dead_strip	_ad5504_probe
.subsections_via_symbols
