	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btt_log_get_old
_btt_log_get_old:                       ## @btt_log_get_old
	.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	%rsi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %r14d
	movl	4(%rax), %r15d
	movq	%rsi, %rdi
	movl	%r14d, %esi
	callq	_log_seq
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_log_seq
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_log_seq
	cmpl	%eax, %r12d
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_log_seq
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_log_seq
	addl	%r12d, %eax
	cmpl	$6, %eax
	jl	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_1:
	movslq	%r14d, %r14
	movl	$1, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movl	%eax, (%rcx,%r14,4)
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_log_seq
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_log_seq
	movq	%rbx, %rdi
	cmpl	%eax, %r12d
	jge	LBB0_7
## %bb.6:
	movl	%r15d, %esi
	callq	_log_seq
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_log_seq
	subl	%eax, %r15d
	xorl	%eax, %eax
	cmpl	$1, %r15d
	setne	%al
	jmp	LBB0_8
LBB0_7:
	movl	%r14d, %esi
	callq	_log_seq
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_log_seq
	subl	%eax, %r14d
	xorl	%eax, %eax
	cmpl	$1, %r14d
	sete	%al
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_btt_log_get_old
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btt_log_get_old
_btt_log_get_old:                       ; @btt_log_get_old
	.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, x1
	ldr	x8, [x0]
	ldp	w1, w21, [x8]
	sxtw	x20, w1
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_log_seq
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_log_seq
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	_log_seq
	cmp	w22, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_log_seq
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	_log_seq
	add	w8, w0, w22
	cmp	w8, #6
	b.lt	LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #1
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	str	w8, [x9, x20, lsl #2]
LBB0_5:
	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_6:
	mov	x0, x19
	mov	x1, x20
	bl	_log_seq
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	_log_seq
	cmp	w22, w0
	b.ge	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_log_seq
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_log_seq
	sub	w8, w21, w0
	cmp	w8, #1
	cset	w0, ne
	b	LBB0_5
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_log_seq
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_log_seq
	sub	w8, w20, w0
	cmp	w8, #1
	cset	w0, eq
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_btt_log_get_old
.subsections_via_symbols
