	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad2s90_probe
_ad2s90_probe:                          ## @ad2s90_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), %rdx
	movq	_AD2S90_MAX_SPI_FREQ_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	8(%rdi), %r15
	cmpq	%rcx, %rdx
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	%rdi, %r14
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	leaq	8(%r12), %rdi
	callq	_mutex_init
	movq	%r14, (%r12)
	movq	%r15, 8(%rbx)
	movq	_ad2s90_info@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_ad2s90_chan@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movl	$1, (%rbx)
	movq	%r14, %rdi
	callq	_spi_get_device_id
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD2S90_MAX_SPI_FREQ_HZ,8,3     ## @AD2S90_MAX_SPI_FREQ_HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SPI CLK, %d Hz exceeds %d Hz\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad2s90_info,4,2                ## @ad2s90_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad2s90_chan,4,2                ## @ad2s90_chan
	.no_dead_strip	_ad2s90_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad2s90_probe
_ad2s90_probe:                          ; @ad2s90_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	x20, x0
	ldr	x2, [x20], #8
Lloh0:
	adrp	x8, _AD2S90_MAX_SPI_FREQ_HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD2S90_MAX_SPI_FREQ_HZ@GOTPAGEOFF]
Lloh2:
	ldr	x3, [x8]
	cmp	x2, x3
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	mov	x0, x20
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	bl	_iio_priv
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	_spi_set_drvdata
	add	x0, x22, #8
	bl	_mutex_init
	str	x19, [x22]
	str	x20, [x21, #8]
Lloh7:
	adrp	x8, _ad2s90_info@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ad2s90_info@GOTPAGEOFF]
	str	x8, [x21, #40]
Lloh9:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21, #32]
Lloh12:
	adrp	x8, _ad2s90_chan@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ad2s90_chan@GOTPAGEOFF]
	str	x8, [x21, #24]
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0]
	str	w8, [x21, #16]
	ldr	x0, [x21, #8]
	mov	x1, 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
	b	_devm_iio_device_register
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AD2S90_MAX_SPI_FREQ_HZ,8,3     ; @AD2S90_MAX_SPI_FREQ_HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SPI CLK, %d Hz exceeds %d Hz\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad2s90_info,4,2                ; @ad2s90_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad2s90_chan,4,2                ; @ad2s90_chan
	.no_dead_strip	_ad2s90_probe
.subsections_via_symbols
