	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function retrieve_msg_frame
_retrieve_msg_frame:                    ## @retrieve_msg_frame
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_MSG_OUTBOUND_POST_TAIL@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_MIXART_MEM
	movl	%eax, %edi
	callq	_readl_be
	movq	%rax, %rbx
	movq	_MSG_OUTBOUND_POST_HEAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_MIXART_MEM
	movl	%eax, %edi
	callq	_readl_be
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	je	LBB0_4
## %bb.1:
	movq	_MSG_OUTBOUND_POST_STACK@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_4
## %bb.2:
	movq	_MSG_BOUND_STACK_SIZE@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_MIXART_MEM
	movl	%eax, %edi
	callq	_readl_be
	movq	%rax, (%r15)
	addq	$4, %rbx
	movq	(%r13), %rax
	movq	_MSG_BOUND_STACK_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	cmpq	%rcx, %rbx
	cmovgeq	%rax, %rbx
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_MIXART_MEM
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_writel_be
	movl	$1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_OUTBOUND_POST_TAIL,8,3     ## @MSG_OUTBOUND_POST_TAIL
	.comm	_MSG_OUTBOUND_POST_HEAD,8,3     ## @MSG_OUTBOUND_POST_HEAD
	.comm	_MSG_OUTBOUND_POST_STACK,8,3    ## @MSG_OUTBOUND_POST_STACK
	.comm	_MSG_BOUND_STACK_SIZE,8,3       ## @MSG_BOUND_STACK_SIZE
	.no_dead_strip	_retrieve_msg_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function retrieve_msg_frame
_retrieve_msg_frame:                    ; @retrieve_msg_frame
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MSG_OUTBOUND_POST_TAIL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_OUTBOUND_POST_TAIL@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_MIXART_MEM
	bl	_readl_be
	mov	x21, x0
Lloh2:
	adrp	x8, _MSG_OUTBOUND_POST_HEAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_OUTBOUND_POST_HEAD@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_MIXART_MEM
	bl	_readl_be
	cmp	x21, x0
	b.eq	LBB0_4
; %bb.1:
Lloh5:
	adrp	x23, _MSG_OUTBOUND_POST_STACK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MSG_OUTBOUND_POST_STACK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x21, x8
	b.lt	LBB0_4
; %bb.2:
Lloh7:
	adrp	x24, _MSG_BOUND_STACK_SIZE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MSG_BOUND_STACK_SIZE@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x8, x9, x8
	cmp	x21, x8
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_MIXART_MEM
	bl	_readl_be
	str	x0, [x20]
	add	x8, x21, #4
	ldr	x9, [x23]
	ldr	x10, [x24]
	add	x10, x10, x9
	cmp	x8, x10
	csel	x20, x8, x9, lt
	ldr	x1, [x22]
	mov	x0, x19
	bl	_MIXART_MEM
	mov	x1, x0
	mov	x0, x20
	bl	_writel_be
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_OUTBOUND_POST_TAIL,8,3     ; @MSG_OUTBOUND_POST_TAIL
	.comm	_MSG_OUTBOUND_POST_HEAD,8,3     ; @MSG_OUTBOUND_POST_HEAD
	.comm	_MSG_OUTBOUND_POST_STACK,8,3    ; @MSG_OUTBOUND_POST_STACK
	.comm	_MSG_BOUND_STACK_SIZE,8,3       ; @MSG_BOUND_STACK_SIZE
	.no_dead_strip	_retrieve_msg_frame
.subsections_via_symbols
