	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_memory_packet_size
_get_memory_packet_size:                ## @get_memory_packet_size
	.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
	xorl	%eax, %eax
	callq	_get_remote_state
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	movl	$16384, %eax                    ## imm = 0x4000
	cmovgq	%rcx, %rax
	jmp	LBB0_3
LBB0_2:
	movq	(%rbx), %rcx
	movq	(%rax), %rdx
	cmpq	%rcx, %rdx
	movq	%rdx, %rsi
	cmovgq	%rcx, %rsi
	testq	%rcx, %rcx
	cmovleq	%rdx, %rsi
	movq	8(%rax), %rcx
	cmpq	%rcx, %rsi
	movq	%rsi, %rax
	cmovgq	%rcx, %rax
	testq	%rcx, %rcx
	cmovleq	%rsi, %rax
LBB0_3:
	cmpq	$16384, %rax                    ## imm = 0x4000
	movl	$16384, %ecx                    ## imm = 0x4000
	cmovlq	%rax, %rcx
	cmpq	$17, %rcx
	movl	$16, %eax
	cmovgeq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_REMOTE_PACKET_SIZE,8,3     ## @MAX_REMOTE_PACKET_SIZE
	.comm	_MIN_REMOTE_PACKET_SIZE,8,3     ## @MIN_REMOTE_PACKET_SIZE
	.no_dead_strip	_get_memory_packet_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_memory_packet_size
_get_memory_packet_size:                ; @get_memory_packet_size
	.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
	bl	_get_remote_state
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	mov	w9, #16384
	cmp	x8, #1
	csel	x8, x9, x8, lt
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
	ldp	x9, x10, [x0]
	cmp	x9, x8
	ccmp	x8, #0, #4, gt
	csel	x8, x8, x9, gt
	cmp	x8, x10
	ccmp	x10, #0, #4, gt
	csel	x8, x10, x8, gt
LBB0_3:
	mov	w9, #16384
	cmp	x8, #4, lsl #12                 ; =16384
	csel	x8, x8, x9, lt
	mov	w9, #16
	cmp	x8, #16
	csel	x0, x8, x9, gt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_REMOTE_PACKET_SIZE,8,3     ; @MAX_REMOTE_PACKET_SIZE
	.comm	_MIN_REMOTE_PACKET_SIZE,8,3     ; @MIN_REMOTE_PACKET_SIZE
	.no_dead_strip	_get_memory_packet_size
.subsections_via_symbols
