	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modify_table
_modify_table:                          ## @modify_table
	.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
	cmpl	$24, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdx), %rbx
	movq	(%rbx), %rdi
	callq	_check_table_name
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-32(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_objheader_to_ti
	movl	20(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	%r14, %rdi
	callq	_IPFW_UH_WLOCK
	movq	%r14, %rdi
	callq	_CHAIN_TO_NI
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_find_table
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	8(%rax), %rcx
	movq	_TA_FLAG_READONLY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	_ESRCH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movl	8(%rbx), %ecx
	movq	_IPFW_TMFLAGS_LIMIT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_11
## %bb.10:
	movl	16(%rbx), %edx
	movl	%edx, 4(%rax)
LBB0_11:
	movq	_IPFW_TMFLAGS_LOCK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_13
## %bb.12:
	movq	_IPFW_TGFLAGS_LOCKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	12(%rbx), %ecx
	setne	%dl
	movl	%edx, (%rax)
LBB0_13:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_TA_FLAG_READONLY,4,2           ## @TA_FLAG_READONLY
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_IPFW_TMFLAGS_LIMIT,4,2         ## @IPFW_TMFLAGS_LIMIT
	.comm	_IPFW_TMFLAGS_LOCK,4,2          ## @IPFW_TMFLAGS_LOCK
	.comm	_IPFW_TGFLAGS_LOCKED,4,2        ## @IPFW_TGFLAGS_LOCKED
	.no_dead_strip	_modify_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modify_table
_modify_table:                          ; @modify_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x2]
	cmp	w8, #24
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x20, [x2, #8]
	ldr	x0, [x20]
	bl	_check_table_name
	cbz	x0, 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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	add	x1, sp, #8
	mov	x0, x20
	bl	_objheader_to_ti
	ldr	w8, [x20, #20]
	str	w8, [sp, #8]
	mov	x0, x19
	bl	_IPFW_UH_WLOCK
	mov	x0, x19
	bl	_CHAIN_TO_NI
	add	x1, sp, #8
	bl	_find_table
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _TA_FLAG_READONLY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TA_FLAG_READONLY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
Lloh5:
	adrp	x8, _EACCES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_3
LBB0_8:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
Lloh7:
	adrp	x8, _ESRCH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
	b	LBB0_3
LBB0_9:
	ldr	w8, [x20, #8]
Lloh9:
	adrp	x9, _IPFW_TMFLAGS_LIMIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPFW_TMFLAGS_LIMIT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w9, [x20, #16]
	str	w9, [x0, #4]
LBB0_11:
Lloh12:
	adrp	x9, _IPFW_TMFLAGS_LOCK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IPFW_TMFLAGS_LOCK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	w8, [x20, #12]
Lloh15:
	adrp	x9, _IPFW_TGFLAGS_LOCKED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IPFW_TGFLAGS_LOCKED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x0]
LBB0_13:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_TA_FLAG_READONLY,4,2           ; @TA_FLAG_READONLY
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_IPFW_TMFLAGS_LIMIT,4,2         ; @IPFW_TMFLAGS_LIMIT
	.comm	_IPFW_TMFLAGS_LOCK,4,2          ; @IPFW_TMFLAGS_LOCK
	.comm	_IPFW_TGFLAGS_LOCKED,4,2        ; @IPFW_TGFLAGS_LOCKED
	.no_dead_strip	_modify_table
.subsections_via_symbols
