	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sca3000_probe
_sca3000_probe:                         ## @sca3000_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_spi_set_drvdata
	movq	%r14, 16(%r15)
	leaq	8(%r15), %rdi
	callq	_mutex_init
	movq	_sca3000_spi_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r14, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
	leaq	(,%rax,8), %rax
	addq	%r13, %rax
	movq	%rax, (%r15)
	movq	%rbx, 48(%r12)
	movq	%r14, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 40(%r12)
	movq	_sca3000_info@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	_sca3000_channels@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	movq	_sca3000_channels_with_temp@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rdi
	movq	%rdi, 24(%r12)
	callq	_ARRAY_SIZE
	movq	%rax, 16(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	callq	_sca3000_configure_ring
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_sca3000_event_handler@GOTPCREL(%rip), %rdx
	leaq	L_.str(%rip), %r8
	xorl	%esi, %esi
	movq	%r12, %r9
	callq	_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
LBB0_8:
	movq	_sca3000_ring_setup_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	movq	%r15, %rdi
	callq	_sca3000_clean_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_sca3000_print_rev
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
LBB0_10:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	movq	%r12, %rsi
	callq	_free_irq
	jmp	LBB0_12
LBB0_13:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iio_device_register            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sca3000_spi_chip_info_tbl,8,3  ## @sca3000_spi_chip_info_tbl
	.comm	_sca3000_info,4,2               ## @sca3000_info
	.comm	_sca3000_channels_with_temp,8,3 ## @sca3000_channels_with_temp
	.comm	_sca3000_channels,8,3           ## @sca3000_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_sca3000_event_handler,4,2      ## @sca3000_event_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sca3000"

	.comm	_sca3000_ring_setup_ops,4,2     ## @sca3000_ring_setup_ops
	.no_dead_strip	_sca3000_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sca3000_probe
_sca3000_probe:                         ; @sca3000_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	add	x22, x0, #8
	mov	x0, x22
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	str	x19, [x21, #16]
	add	x0, x21, #8
	bl	_mutex_init
Lloh0:
	adrp	x8, _sca3000_spi_chip_info_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sca3000_spi_chip_info_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	x8, [x0]
	add	x8, x23, x8, lsl #3
	str	x8, [x21]
	str	x22, [x20, #48]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
Lloh3:
	adrp	x9, _sca3000_info@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sca3000_info@GOTPAGEOFF]
	str	w8, [x20, #40]
	str	x9, [x20, #32]
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _sca3000_channels@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sca3000_channels@GOTPAGEOFF]
Lloh7:
	adrp	x10, _sca3000_channels_with_temp@GOTPAGE
Lloh8:
	ldr	x10, [x10, _sca3000_channels_with_temp@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	x0, [x8]
	str	x0, [x20, #24]
	bl	_ARRAY_SIZE
	str	x0, [x20, #16]
Lloh9:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_sca3000_configure_ring
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh18:
	adrp	x2, _sca3000_event_handler@GOTPAGE
Lloh19:
	ldr	x2, [x2, _sca3000_event_handler@GOTPAGEOFF]
Lloh20:
	adrp	x4, l_.str@PAGE
Lloh21:
	add	x4, x4, l_.str@PAGEOFF
	mov	x1, #0
	mov	x5, x20
	bl	_request_threaded_irq
	mov	x22, x0
	cbnz	w0, LBB0_9
LBB0_4:
Lloh22:
	adrp	x8, _sca3000_ring_setup_ops@GOTPAGE
Lloh23:
	ldr	x8, [x8, _sca3000_ring_setup_ops@GOTPAGEOFF]
	str	x8, [x20]
	mov	x0, x21
	bl	_sca3000_clean_setup
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_sca3000_print_rev
	mov	x22, x0
	cbz	w0, LBB0_10
LBB0_6:
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.7:
	mov	x1, x20
	bl	_free_irq
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_iio_device_register
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sca3000_spi_chip_info_tbl,8,3  ; @sca3000_spi_chip_info_tbl
	.comm	_sca3000_info,4,2               ; @sca3000_info
	.comm	_sca3000_channels_with_temp,8,3 ; @sca3000_channels_with_temp
	.comm	_sca3000_channels,8,3           ; @sca3000_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_sca3000_event_handler,4,2      ; @sca3000_event_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sca3000"

	.comm	_sca3000_ring_setup_ops,4,2     ; @sca3000_ring_setup_ops
	.no_dead_strip	_sca3000_probe
.subsections_via_symbols
