	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _load_port
__load_port:                            ## @_load_port
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IBND_FABRIC_CACHE_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	$80, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movl	$80, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	%rbx, 72(%r13)
	movq	_IBND_PORT_CACHE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_ibnd_read
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:
	leaq	64(%rbx), %rsi
	movq	%r15, %rdi
	callq	__unmarshall64
	movq	%rax, %r14
	leaq	(%r15,%rax,8), %rdi
	leaq	-56(%rbp), %rsi
	callq	__unmarshall8
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	addq	%r14, %r12
	movq	-56(%rbp), %rax
	movq	%rax, 56(%rbx)
	leaq	(%r15,%r12,8), %rdi
	leaq	-56(%rbp), %rsi
	callq	__unmarshall8
	movq	%rax, %r14
	addq	%r12, %r14
	movq	-56(%rbp), %rax
	movq	%rax, 48(%rbx)
	leaq	(%r15,%r14,8), %rdi
	movq	%rbx, %rsi
	addq	$40, %rsi
	callq	__unmarshall16
	movq	%rax, %r12
	addq	%r14, %r12
	leaq	(%r15,%r12,8), %rdi
	movq	%rbx, %rsi
	callq	__unmarshall8
	movq	%rax, %r14
	addq	%r12, %r14
	leaq	(%r15,%r14,8), %rdi
	movl	36(%rbx), %esi
	movq	_IB_SMP_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	__unmarshall_buf
	movq	%rax, %rbx
	addq	%r14, %rbx
	leaq	(%r15,%rbx,8), %rdi
	leaq	32(%r13), %rsi
	callq	__unmarshall64
	movq	%rax, %r14
	addq	%rbx, %r14
	leaq	(%r15,%r14,8), %rdi
	leaq	8(%r13), %rsi
	callq	__unmarshall8
	movq	%rax, %rbx
	addq	%r14, %rbx
	leaq	(%r15,%rbx,8), %rdi
	leaq	16(%r13), %r14
	movq	%r13, %rsi
	addq	$24, %rsi
	callq	__unmarshall64
	addq	%rbx, %rax
	leaq	(%r15,%rax,8), %rdi
	movq	%r14, %rsi
	callq	__unmarshall8
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_store_port_cache
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_IBND_DEBUG
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_IBND_DEBUG
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
LBB0_7:
	movq	%r13, %rdi
	callq	_free
LBB0_8:
	movl	$-1, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IBND_FABRIC_CACHE_BUFLEN,4,2   ## @IBND_FABRIC_CACHE_BUFLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OOM: port_cache\n"

L_.str.1:                               ## @.str.1
	.asciz	"OOM: port\n"

	.comm	_IBND_PORT_CACHE_LEN,4,2        ## @IBND_PORT_CACHE_LEN
	.comm	_IB_SMP_DATA_SIZE,4,2           ## @IB_SMP_DATA_SIZE
	.no_dead_strip	__load_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _load_port
__load_port:                            ; @_load_port
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _IBND_FABRIC_CACHE_BUFLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IBND_FABRIC_CACHE_BUFLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	w0, #80
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	mov	w0, #80
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	str	x22, [x20, #72]
Lloh8:
	adrp	x8, _IBND_PORT_CACHE_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IBND_PORT_CACHE_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x21
	bl	_ibnd_read
	tbnz	x0, #63, LBB0_6
; %bb.3:
	add	x1, x22, #64
	mov	x0, x21
	bl	__unmarshall64
	mov	x23, x0
	add	x0, x21, x0, lsl #3
	sub	x1, x29, #64
	bl	__unmarshall8
	add	x23, x0, x23
	ldur	x8, [x29, #-64]
	str	x8, [x22, #56]
	add	x0, x21, x23, lsl #3
	sub	x1, x29, #64
	bl	__unmarshall8
	add	x23, x0, x23
	ldur	x8, [x29, #-64]
	str	x8, [x22, #48]
	add	x0, x21, x23, lsl #3
	add	x1, x22, #40
	bl	__unmarshall16
	add	x23, x0, x23
	add	x0, x21, x23, lsl #3
	mov	x1, x22
	bl	__unmarshall8
	add	x23, x23, x0
	add	x0, x21, x23, lsl #3
	ldr	w1, [x22, #36]
Lloh11:
	adrp	x8, _IB_SMP_DATA_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_SMP_DATA_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	__unmarshall_buf
	add	x22, x0, x23
	add	x0, x21, x22, lsl #3
	add	x1, x20, #32
	bl	__unmarshall64
	add	x22, x22, x0
	add	x0, x21, x22, lsl #3
	add	x1, x20, #8
	bl	__unmarshall8
	add	x23, x22, x0
	add	x0, x21, x23, lsl #3
	add	x22, x20, #16
	add	x1, x20, #24
	bl	__unmarshall64
	add	x8, x23, x0
	add	x0, x21, x8, lsl #3
	mov	x1, x22
	bl	__unmarshall8
	mov	x0, x20
	mov	x1, x19
	bl	_store_port_cache
	mov	w0, #0
	b	LBB0_9
LBB0_4:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IBND_DEBUG
	b	LBB0_8
LBB0_5:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IBND_DEBUG
	b	LBB0_7
LBB0_6:
	mov	x0, x22
	bl	_free
LBB0_7:
	mov	x0, x20
	bl	_free
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #48
	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
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IBND_FABRIC_CACHE_BUFLEN,4,2   ; @IBND_FABRIC_CACHE_BUFLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OOM: port_cache\n"

l_.str.1:                               ; @.str.1
	.asciz	"OOM: port\n"

	.comm	_IBND_PORT_CACHE_LEN,4,2        ; @IBND_PORT_CACHE_LEN
	.comm	_IB_SMP_DATA_SIZE,4,2           ; @IB_SMP_DATA_SIZE
	.no_dead_strip	__load_port
.subsections_via_symbols
