	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmp_tdma_get_pos
_mmp_tdma_get_pos:                      ## @mmp_tdma_get_pos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$1, %eax
	je	LBB0_4
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movq	_TDSAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	___raw_readl
	movq	8(%rbx), %rcx
	addq	$8, %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_TDDAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	___raw_readl
	movq	8(%rbx), %rcx
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
LBB0_5:
	subq	(%rcx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDSAR,8,3                      ## @TDSAR
	.comm	_TDDAR,8,3                      ## @TDDAR
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_mmp_tdma_get_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmp_tdma_get_pos
_mmp_tdma_get_pos:                      ; @mmp_tdma_get_pos
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _TDSAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TDSAR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	___raw_readl
	ldr	x8, [x19, #8]
	add	x8, x8, #8
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _TDDAR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TDDAR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	___raw_readl
	ldr	x8, [x19, #8]
	b	LBB0_5
LBB0_4:
	mov	x0, #0
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	sub	x0, x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TDSAR,8,3                      ; @TDSAR
	.comm	_TDDAR,8,3                      ; @TDDAR
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_mmp_tdma_get_pos
.subsections_via_symbols
