	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipfw_flush_sopt_data
_ipfw_flush_sopt_data:                  ## @ipfw_flush_sopt_data
	.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	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	56(%rdi), %r12
	movq	(%r12), %rax
	movq	_SOPT_GET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	48(%rbx), %edi
	movq	8(%r12), %rsi
	movq	%r14, %rdx
	callq	_copyout
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movl	48(%rbx), %edi
	movq	8(%rbx), %rdx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_memset
	addq	16(%rbx), %r14
	movq	%r14, 16(%rbx)
	movq	$0, (%rbx)
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	leaq	(%rax,%r14), %rdx
	movq	%rcx, %rsi
	subq	%r14, %rsi
	cmpq	%rcx, %rdx
	cmovlq	%rax, %rsi
	movq	%rsi, 32(%rbx)
	movq	%r14, 16(%r12)
	addq	40(%rbx), %r14
	movq	%r14, 8(%r12)
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOPT_GET,8,3                   ## @SOPT_GET
	.no_dead_strip	_ipfw_flush_sopt_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipfw_flush_sopt_data
_ipfw_flush_sopt_data:                  ; @ipfw_flush_sopt_data
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #56]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _SOPT_GET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOPT_GET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #48]
	ldr	x1, [x21, #8]
	mov	x2, x20
	bl	_copyout
	cbnz	w0, LBB0_5
LBB0_3:
	ldr	w0, [x19, #48]
	ldr	x2, [x19, #8]
	mov	w1, #0
	bl	_memset
	mov	w0, #0
	ldp	x9, x8, [x19, #8]
	add	x8, x8, x20
	add	x10, x9, x8
	str	x8, [x19, #16]
	str	xzr, [x19]
	ldr	x11, [x19, #24]
	sub	x12, x11, x8
	cmp	x10, x11
	csel	x9, x9, x12, lt
	str	x9, [x19, #32]
	ldr	x9, [x19, #40]
	add	x9, x9, x8
	stp	x9, x8, [x21, #8]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SOPT_GET,8,3                   ; @SOPT_GET
	.no_dead_strip	_ipfw_flush_sopt_data
.subsections_via_symbols
