	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip_vs_sh_schedule
_ip_vs_sh_schedule:                     ## @ip_vs_sh_schedule
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	movq	%rsi, %rdi
	callq	_skb_network_header
	leaq	-32(%rbp), %r15
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_ip_vs_fill_iphdr
	leaq	L_.str(%rip), %rsi
	movl	$6, %edi
	callq	_IP_VS_DBG
	movq	8(%r14), %rsi
	movl	(%r14), %edi
	movq	%r15, %rdx
	callq	_ip_vs_sh_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	_IP_VS_DEST_F_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.2:
	leaq	12(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_is_overloaded
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_IP_VS_ERR_RL
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %edi
	leaq	-32(%rbp), %rsi
	callq	_IP_VS_DBG_ADDR
	movl	%eax, %r15d
	movl	(%r14), %edi
	movq	%rbx, %rsi
	addq	$8, %rsi
	callq	_IP_VS_DBG_ADDR
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	callq	_ntohs
	leaq	L_.str.2(%rip), %rsi
	movl	$6, %edi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_IP_VS_DBG_BUF
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ip_vs_sh_schedule(): Scheduling...\n"

	.comm	_IP_VS_DEST_F_AVAILABLE,4,2     ## @IP_VS_DEST_F_AVAILABLE
L_.str.1:                               ## @.str.1
	.asciz	"SH: no destination available\n"

L_.str.2:                               ## @.str.2
	.asciz	"SH: source IP address %s --> server %s:%d\n"

	.no_dead_strip	_ip_vs_sh_schedule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip_vs_sh_schedule
_ip_vs_sh_schedule:                     ; @ip_vs_sh_schedule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w20, [x0]
	mov	x0, x1
	bl	_skb_network_header
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_ip_vs_fill_iphdr
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #6
	bl	_IP_VS_DBG
	ldr	x1, [x19, #8]
	ldr	w0, [x19]
	add	x2, sp, #8
	bl	_ip_vs_sh_get
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _IP_VS_DEST_F_AVAILABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IP_VS_DEST_F_AVAILABLE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	add	x0, x20, #12
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_is_overloaded
	cbz	x0, LBB0_6
LBB0_4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IP_VS_ERR_RL
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_IP_VS_DBG_ADDR
	mov	x21, x0
	ldr	w0, [x19]
	add	x1, x20, #8
	bl	_IP_VS_DBG_ADDR
	mov	x19, x0
	ldr	w0, [x20, #4]
	bl	_ntohs
	mov	x4, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #6
	mov	x2, x21
	mov	x3, x19
	bl	_IP_VS_DBG_BUF
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ip_vs_sh_schedule(): Scheduling...\n"

	.comm	_IP_VS_DEST_F_AVAILABLE,4,2     ; @IP_VS_DEST_F_AVAILABLE
l_.str.1:                               ; @.str.1
	.asciz	"SH: no destination available\n"

l_.str.2:                               ; @.str.2
	.asciz	"SH: source IP address %s --> server %s:%d\n"

	.no_dead_strip	_ip_vs_sh_schedule
.subsections_via_symbols
