	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsys01_probe
_tsys01_probe:                          ## @tsys01_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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r15
	leaq	12(%rax), %rdi
	callq	_mutex_init
	movq	_tsys01_info@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_tsys01_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, (%rbx)
	movl	8(%r15), %edi
	movq	_TSYS01_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3000, %edx                     ## imm = 0xBB8
	callq	*(%r15)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_tsys01_read_prom
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	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
	.comm	_tsys01_info,4,2                ## @tsys01_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_tsys01_channels,4,2            ## @tsys01_channels
	.comm	_TSYS01_RESET,4,2               ## @TSYS01_RESET
	.no_dead_strip	_tsys01_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsys01_probe
_tsys01_probe:                          ; @tsys01_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, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x21, x0
	add	x0, x0, #12
	bl	_mutex_init
Lloh0:
	adrp	x8, _tsys01_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tsys01_info@GOTPAGEOFF]
	str	x8, [x19, #32]
	ldr	x8, [x20]
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	x20, [x19, #16]
Lloh2:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _tsys01_channels@GOTPAGE
Lloh6:
	ldr	x9, [x9, _tsys01_channels@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	stp	w0, w8, [x19, #4]
	bl	_ARRAY_SIZE
	str	w0, [x19]
	ldr	x8, [x21]
	ldr	w0, [x21, #8]
Lloh8:
	adrp	x9, _TSYS01_RESET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TSYS01_RESET@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	mov	w2, #3000
	blr	x8
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tsys01_read_prom
	cbz	w0, LBB0_3
LBB0_2:
	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_3:
	mov	x0, x20
	mov	x1, x19
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tsys01_info,4,2                ; @tsys01_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_tsys01_channels,4,2            ; @tsys01_channels
	.comm	_TSYS01_RESET,4,2               ; @TSYS01_RESET
	.no_dead_strip	_tsys01_probe
.subsections_via_symbols
