	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_link_get_max_pkt          ## -- Begin function tipc_link_get_max_pkt
	.p2align	4, 0x90
_tipc_link_get_max_pkt:                 ## @tipc_link_get_max_pkt
	.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	_tipc_own_addr@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_MAX_MSG_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_7
LBB0_2:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_MAX_PKT_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_tipc_net_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock_bh
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_tipc_node_select
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_tipc_node_lock
	movq	(%r15), %rax
	andl	$1, %r12d
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_link_max_pkt
	movq	%rax, %r14
LBB0_5:
	movq	%r15, %rdi
	callq	_tipc_node_unlock
LBB0_6:
	movq	_tipc_net_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock_bh
LBB0_7:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PKT_DEFAULT,8,3            ## @MAX_PKT_DEFAULT
	.comm	_tipc_own_addr,8,3              ## @tipc_own_addr
	.comm	_MAX_MSG_SIZE,8,3               ## @MAX_MSG_SIZE
	.comm	_tipc_net_lock,4,2              ## @tipc_net_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_link_get_max_pkt          ; -- Begin function tipc_link_get_max_pkt
	.p2align	2
_tipc_link_get_max_pkt:                 ; @tipc_link_get_max_pkt
	.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
Lloh0:
	adrp	x8, _tipc_own_addr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tipc_own_addr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MAX_MSG_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_MSG_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x8]
	b	LBB0_7
LBB0_2:
	mov	x20, x1
	mov	x21, x0
Lloh6:
	adrp	x8, _MAX_PKT_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_PKT_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
Lloh9:
	adrp	x0, _tipc_net_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _tipc_net_lock@GOTPAGEOFF]
	bl	_read_lock_bh
	mov	x0, x21
	mov	x1, x20
	bl	_tipc_node_select
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	bl	_tipc_node_lock
	ldr	x8, [x21]
	and	x9, x20, #0x1
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_link_max_pkt
	mov	x19, x0
LBB0_5:
	mov	x0, x21
	bl	_tipc_node_unlock
LBB0_6:
Lloh11:
	adrp	x0, _tipc_net_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _tipc_net_lock@GOTPAGEOFF]
	bl	_read_unlock_bh
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PKT_DEFAULT,8,3            ; @MAX_PKT_DEFAULT
	.comm	_tipc_own_addr,8,3              ; @tipc_own_addr
	.comm	_MAX_MSG_SIZE,8,3               ; @MAX_MSG_SIZE
	.comm	_tipc_net_lock,4,2              ; @tipc_net_lock
.subsections_via_symbols
