	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_vs_sync_switch_mode         ## -- Begin function ip_vs_sync_switch_mode
	.p2align	4, 0x90
_ip_vs_sync_switch_mode:                ## @ip_vs_sync_switch_mode
	.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
	movl	%edi, %ebx
	movq	_curr_sb_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	_ip_vs_sync_state@GOTPCREL(%rip), %rax
	movq	_IP_VS_STATE_MASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_sysctl_ip_vs_sync_ver@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_6
## %bb.2:
	movq	_curr_sb@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	movq	(%rdi), %rax
	cmpl	$4, (%rax)
	ja	LBB0_5
## %bb.4:
	callq	_ip_vs_sync_buff_release
	movq	$0, (%rbx)
	jmp	LBB0_6
LBB0_5:
	callq	_sb_queue_tail
LBB0_6:
	movq	_curr_sb_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curr_sb_lock,4,2               ## @curr_sb_lock
	.comm	_ip_vs_sync_state,4,2           ## @ip_vs_sync_state
	.comm	_IP_VS_STATE_MASTER,4,2         ## @IP_VS_STATE_MASTER
	.comm	_curr_sb,8,3                    ## @curr_sb
	.comm	_sysctl_ip_vs_sync_ver,4,2      ## @sysctl_ip_vs_sync_ver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_vs_sync_switch_mode         ; -- Begin function ip_vs_sync_switch_mode
	.p2align	2
_ip_vs_sync_switch_mode:                ; @ip_vs_sync_switch_mode
	.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
Lloh0:
	adrp	x0, _curr_sb_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _curr_sb_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
Lloh2:
	adrp	x8, _ip_vs_sync_state@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ip_vs_sync_state@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IP_VS_STATE_MASTER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IP_VS_STATE_MASTER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
Lloh8:
	adrp	x20, _curr_sb@GOTPAGE
Lloh9:
	ldr	x20, [x20, _curr_sb@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh10:
	adrp	x8, _sysctl_ip_vs_sync_ver@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sysctl_ip_vs_sync_ver@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w19
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.3:
	bl	_ip_vs_sync_buff_release
	str	xzr, [x20]
	b	LBB0_5
LBB0_4:
	bl	_sb_queue_tail
LBB0_5:
Lloh13:
	adrp	x0, _curr_sb_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _curr_sb_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_curr_sb_lock,4,2               ; @curr_sb_lock
	.comm	_ip_vs_sync_state,4,2           ; @ip_vs_sync_state
	.comm	_IP_VS_STATE_MASTER,4,2         ; @IP_VS_STATE_MASTER
	.comm	_curr_sb,8,3                    ; @curr_sb
	.comm	_sysctl_ip_vs_sync_ver,4,2      ; @sysctl_ip_vs_sync_ver
.subsections_via_symbols
