	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc084s021_probe
_adc084s021_probe:                      ## @adc084s021_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$40, %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, %r15
	movq	%r14, 32(%rax)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r14, 32(%rbx)
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, %rdi
	callq	_spi_get_device_id
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_adc084s021_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_adc084s021_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, (%rbx)
	leaq	8(%r15), %rsi
	movq	24(%r15), %rax
	movq	%rax, 12(%r15)
	movl	$4, 8(%r15)
	leaq	20(%r15), %rdi
	movl	$1, %edx
	callq	_spi_message_init_with_transfers
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movl	4(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	callq	_mutex_init
	movq	_adc084s021_buffer_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_adc084s021_buffer_setup_ops@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_devm_iio_triggered_buffer_setup
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	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
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_adc084s021_info,4,2            ## @adc084s021_info
	.comm	_adc084s021_channels,4,2        ## @adc084s021_channels
L_.str.1:                               ## @.str.1
	.asciz	"vref"

	.comm	_adc084s021_buffer_trigger_handler,4,2 ## @adc084s021_buffer_trigger_handler
	.comm	_adc084s021_buffer_setup_ops,4,2 ## @adc084s021_buffer_setup_ops
L_.str.2:                               ## @.str.2
	.asciz	"Failed to setup triggered buffer\n"

	.no_dead_strip	_adc084s021_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc084s021_probe
_adc084s021_probe:                      ; @adc084s021_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, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	str	x19, [x0, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	str	x19, [x20, #32]
	ldr	w8, [x19]
	str	w8, [x20, #24]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _adc084s021_info@GOTPAGE
Lloh4:
	ldr	x10, [x10, _adc084s021_info@GOTPAGEOFF]
	stp	w9, w8, [x20, #16]
	str	x10, [x20, #8]
Lloh5:
	adrp	x8, _adc084s021_channels@GOTPAGE
Lloh6:
	ldr	x8, [x8, _adc084s021_channels@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	w0, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	ldr	d0, [x21, #24]
	stur	d0, [x21, #12]
	mov	w8, #4
	mov	x1, x21
	str	w8, [x1, #8]!
	add	x0, x21, #20
	mov	w2, #1
	bl	_spi_message_init_with_transfers
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x21, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x21, #4]
	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	_PTR_ERR
LBB0_3:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_mutex_init
Lloh15:
	adrp	x8, _adc084s021_buffer_trigger_handler@GOTPAGE
Lloh16:
	ldr	x8, [x8, _adc084s021_buffer_trigger_handler@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x4, _adc084s021_buffer_setup_ops@GOTPAGE
Lloh19:
	ldr	x4, [x4, _adc084s021_buffer_setup_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_devm_iio_triggered_buffer_setup
	cbz	w0, LBB0_7
; %bb.5:
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_6:
	mov	x0, x21
	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_7:
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate IIO device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_adc084s021_info,4,2            ; @adc084s021_info
	.comm	_adc084s021_channels,4,2        ; @adc084s021_channels
l_.str.1:                               ; @.str.1
	.asciz	"vref"

	.comm	_adc084s021_buffer_trigger_handler,4,2 ; @adc084s021_buffer_trigger_handler
	.comm	_adc084s021_buffer_setup_ops,4,2 ; @adc084s021_buffer_setup_ops
l_.str.2:                               ; @.str.2
	.asciz	"Failed to setup triggered buffer\n"

	.no_dead_strip	_adc084s021_probe
.subsections_via_symbols
