	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7291_probe
_ad7291_probe:                          ## @ad7291_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	%rsi, %rbx
	leaq	8(%rdi), %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r14
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_6
## %bb.3:
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regulator_get
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_20
LBB0_5:
	callq	_regulator_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_20
LBB0_6:
	movq	%r13, %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%r13, 16(%r12)
	movq	_AD7291_NOISE_DELAY@GOTPCREL(%rip), %rcx
	movq	_AD7291_T_SENSE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_AD7291_ALERT_POLARITY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.8:
	movq	_AD7291_EXT_REF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_ad7291_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 36(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 32(%r15)
	movq	%rbx, 24(%r15)
	movl	(%rbx), %eax
	movl	%eax, 16(%r15)
	movq	_ad7291_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_AD7291_COMMAND@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AD7291_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ad7291_i2c_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	%r12, %rdi
	callq	_ad7291_i2c_write
	testl	%eax, %eax
	je	LBB0_12
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_regulator_disable
LBB0_20:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jle	LBB0_14
## %bb.13:
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movq	_ad7291_event_handler@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movq	%r15, %r9
	callq	_request_threaded_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
LBB0_14:
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %r12d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	movq	%r15, %rsi
	callq	_free_irq
	jmp	LBB0_18
LBB0_15:
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

	.comm	_AD7291_NOISE_DELAY,4,2         ## @AD7291_NOISE_DELAY
	.comm	_AD7291_T_SENSE_MASK,4,2        ## @AD7291_T_SENSE_MASK
	.comm	_AD7291_ALERT_POLARITY,4,2      ## @AD7291_ALERT_POLARITY
	.comm	_AD7291_EXT_REF,4,2             ## @AD7291_EXT_REF
	.comm	_ad7291_channels,4,2            ## @ad7291_channels
	.comm	_ad7291_info,4,2                ## @ad7291_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_AD7291_COMMAND,4,2             ## @AD7291_COMMAND
	.comm	_AD7291_RESET,4,2               ## @AD7291_RESET
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ad7291_event_handler,4,2       ## @ad7291_event_handler
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.no_dead_strip	_ad7291_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7291_probe
_ad7291_probe:                          ; @ad7291_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, x1
	mov	x20, x0
	add	x23, x0, #8
	ldr	x25, [x0, #16]
	mov	x0, x23
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	cbz	x25, LBB0_7
; %bb.2:
	ldr	x8, [x25]
	cbz	x8, LBB0_7
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_devm_regulator_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_6
; %bb.4:
	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
	b	_PTR_ERR
LBB0_5:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_6:
	bl	_regulator_enable
	mov	x24, x0
	cbnz	w0, LBB0_15
LBB0_7:
	add	x0, x19, #24
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	str	x20, [x19, #16]
Lloh5:
	adrp	x8, _AD7291_NOISE_DELAY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AD7291_NOISE_DELAY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _AD7291_T_SENSE_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AD7291_T_SENSE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _AD7291_ALERT_POLARITY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AD7291_ALERT_POLARITY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	cbz	x25, LBB0_10
; %bb.8:
	ldr	x9, [x25]
	cbz	x9, LBB0_10
; %bb.9:
Lloh14:
	adrp	x9, _AD7291_EXT_REF@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AD7291_EXT_REF@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	ldr	w8, [x22]
Lloh17:
	adrp	x9, _ad7291_channels@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ad7291_channels@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x9]
	stp	w0, w8, [x21, #36]
	bl	_ARRAY_SIZE
	str	w0, [x21, #32]
	str	x23, [x21, #24]
	ldr	w8, [x23]
Lloh20:
	adrp	x9, _ad7291_info@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ad7291_info@GOTPAGEOFF]
	str	w8, [x21, #16]
	str	x9, [x21, #8]
Lloh22:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh25:
	adrp	x23, _AD7291_COMMAND@GOTPAGE
Lloh26:
	ldr	x23, [x23, _AD7291_COMMAND@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh27:
	adrp	x8, _AD7291_RESET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AD7291_RESET@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ad7291_i2c_write
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	w1, [x23]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_ad7291_i2c_write
	cbz	w0, LBB0_16
LBB0_12:
Lloh30:
	adrp	x8, _EIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_13:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_regulator_disable
LBB0_15:
	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
LBB0_16:
	ldr	x0, [x20]
	cmp	x0, #1
	b.lt	LBB0_18
; %bb.17:
Lloh33:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	w4, [x22]
Lloh39:
	adrp	x2, _ad7291_event_handler@GOTPAGE
Lloh40:
	ldr	x2, [x2, _ad7291_event_handler@GOTPAGEOFF]
	mov	x1, #0
	mov	x5, x21
	bl	_request_threaded_irq
	mov	x24, x0
	cbnz	w0, LBB0_13
LBB0_18:
	mov	x0, x21
	bl	_iio_device_register
	mov	x24, x0
	cbz	w0, LBB0_15
; %bb.19:
	ldr	x0, [x20]
	cbz	x0, LBB0_13
; %bb.20:
	mov	x1, x21
	bl	_free_irq
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

	.comm	_AD7291_NOISE_DELAY,4,2         ; @AD7291_NOISE_DELAY
	.comm	_AD7291_T_SENSE_MASK,4,2        ; @AD7291_T_SENSE_MASK
	.comm	_AD7291_ALERT_POLARITY,4,2      ; @AD7291_ALERT_POLARITY
	.comm	_AD7291_EXT_REF,4,2             ; @AD7291_EXT_REF
	.comm	_ad7291_channels,4,2            ; @ad7291_channels
	.comm	_ad7291_info,4,2                ; @ad7291_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_AD7291_COMMAND,4,2             ; @AD7291_COMMAND
	.comm	_AD7291_RESET,4,2               ; @AD7291_RESET
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ad7291_event_handler,4,2       ; @ad7291_event_handler
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.no_dead_strip	_ad7291_probe
.subsections_via_symbols
