	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_soptcodes
_dump_soptcodes:                        ## @dump_soptcodes
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdx, %rdi
	movl	$12, %esi
	callq	_ipfw_get_sopt_header
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	(%r15), %eax
	cmpl	(%rbx), %eax
	jge	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	callq	_CTL3_LOCK
	movq	_ctl3_hsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %ecx
	leal	4(,%rcx,4), %ecx
	movl	%eax, 4(%rbx)
	movl	$12, 8(%rbx)
	cmpl	(%rbx), %ecx
	movl	%ecx, (%rbx)
	jle	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_CTL3_UNLOCK
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %r12
	xorl	%ebx, %ebx
	movq	_ctl3_handlers@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_ipfw_get_sopt_space
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	(%r14), %rax
	movl	20(%rax,%rbx), %ecx
	movl	%ecx, 8(%r13)
	movl	16(%rax,%rbx), %ecx
	movl	%ecx, 4(%r13)
	movl	12(%rax,%rbx), %eax
	movl	%eax, (%r13)
	addq	$12, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_9
LBB0_10:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_CTL3_UNLOCK
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ctl3_hsize,4,2                 ## @ctl3_hsize
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"previously checked buffer is not enough"

	.comm	_ctl3_handlers,8,3              ## @ctl3_handlers
	.no_dead_strip	_dump_soptcodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_soptcodes
_dump_soptcodes:                        ; @dump_soptcodes
	.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
	mov	x19, x2
	mov	x0, x2
	mov	w1, #12
	bl	_ipfw_get_sopt_header
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
	ldr	w9, [x0]
	cmp	w8, w9
	b.ge	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	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_5:
	bl	_CTL3_LOCK
Lloh2:
	adrp	x8, _ctl3_hsize@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ctl3_hsize@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #12
	orr	w10, wzr, #0x4
	madd	w10, w8, w9, w10
	stp	w8, w9, [x20, #4]
	ldr	w9, [x20]
	str	w10, [x20]
	cmp	w10, w9
	b.le	LBB0_7
; %bb.6:
	bl	_CTL3_UNLOCK
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_7:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x22, #0
	add	x8, x8, x8, lsl #1
	lsl	x23, x8, #2
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
Lloh9:
	adrp	x24, _ctl3_handlers@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ctl3_handlers@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #12
	bl	_ipfw_get_sopt_space
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	mov	x1, x20
	bl	_KASSERT
	ldr	x8, [x24]
	add	x8, x8, x22
	ldr	w9, [x8, #20]
	str	w9, [x21, #8]
	ldur	d0, [x8, #12]
	str	d0, [x21]
	add	x22, x22, #12
	cmp	x23, x22
	b.ne	LBB0_9
LBB0_10:
	bl	_CTL3_UNLOCK
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ctl3_hsize,4,2                 ; @ctl3_hsize
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"previously checked buffer is not enough"

	.comm	_ctl3_handlers,8,3              ; @ctl3_handlers
	.no_dead_strip	_dump_soptcodes
.subsections_via_symbols
