	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_jail
_update_jail:                           ## @update_jail
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_JP_RDTUN
	cmpl	$1, %eax
	adcl	$0, %r13d
	addq	$4, %rbx
	movslq	(%r14), %rax
	shlq	$2, %rax
	addq	16(%r14), %rax
	cmpq	%rax, %rbx
	jb	LBB0_2
## %bb.3:
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.4:
	leal	4(,%r13,4), %edi
	callq	_alloca
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_jailparam_init
	testq	%rax, %rax
	js	LBB0_12
## %bb.5:
	leaq	24(%r14), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_jailparam_import_raw
	testq	%rax, %rax
	js	LBB0_12
## %bb.6:
	cmpl	$0, (%r14)
	jle	LBB0_14
## %bb.7:
	movq	16(%r14), %r12
	movq	%r15, %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %r12
	movslq	(%r14), %rax
	shlq	$2, %rax
	addq	16(%r14), %rax
	cmpq	%rax, %r12
	jae	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_JP_RDTUN
	testl	%eax, %eax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %eax
	movl	%eax, 4(%rbx)
	addq	$4, %rbx
	jmp	LBB0_8
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_12:
	movq	_jail_errmsg@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_jail_warnx
	movq	%r14, %rdi
	callq	_failed
	movl	$-1, %ebx
	jmp	LBB0_19
LBB0_14:
	incl	%r13d
	movq	8(%r14), %rax
	movq	_IP_ALLOW_DYING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_bool_param
	xorl	%ecx, %ecx
	movq	_JAIL_UPDATE@GOTPCREL(%rip), %rdx
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_JAIL_DYING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_16:
	orl	(%rdx), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_jailparam_set_note
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_18
## %bb.17:
	movq	_jail_errmsg@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_jail_warnx
	movq	%r14, %rdi
	callq	_failed
LBB0_18:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_jailparam_free
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"jid"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_jail_errmsg,4,2                ## @jail_errmsg
	.comm	_IP_ALLOW_DYING,8,3             ## @IP_ALLOW_DYING
	.comm	_JAIL_UPDATE,4,2                ## @JAIL_UPDATE
	.comm	_JAIL_DYING,4,2                 ## @JAIL_DYING
	.no_dead_strip	_update_jail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_jail
_update_jail:                           ; @update_jail
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x0
	mov	w21, #0
	ldr	x20, [x0, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_JP_RDTUN
	cmp	w0, #0
	cinc	w21, w21, eq
	add	x20, x20, #4
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	cmp	x20, x8
	b.lo	LBB0_2
; %bb.3:
	cbz	w21, LBB0_16
; %bb.4:
	add	w21, w21, #1
	lsl	w0, w21, #2
	bl	_alloca
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_jailparam_init
	tbnz	x0, #63, LBB0_12
; %bb.5:
	add	x1, x19, #24
	mov	x0, x20
	mov	w2, #4
	bl	_jailparam_import_raw
	tbnz	x0, #63, LBB0_12
; %bb.6:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.7:
	ldr	x22, [x19, #16]
	mov	x23, x20
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #4
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	cmp	x22, x8
	b.hs	LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_JP_RDTUN
	cbnz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x22]
	str	w8, [x23, #4]!
	b	LBB0_8
LBB0_11:
	mov	w21, #0
	b	LBB0_16
LBB0_12:
Lloh2:
	adrp	x8, _jail_errmsg@GOTPAGE
Lloh3:
	ldr	x8, [x8, _jail_errmsg@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_jail_warnx
	mov	x0, x19
	bl	_failed
	mov	w21, #-1
	b	LBB0_16
LBB0_13:
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _IP_ALLOW_DYING@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IP_ALLOW_DYING@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_bool_param
Lloh10:
	adrp	x8, _JAIL_UPDATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _JAIL_UPDATE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _JAIL_DYING@GOTPAGE
Lloh14:
	ldr	x9, [x9, _JAIL_DYING@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	x0, #0
	csel	w9, wzr, w9, eq
	orr	w3, w9, w8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_jailparam_set_note
	mov	x21, x0
	tbz	w0, #31, LBB0_15
; %bb.14:
Lloh16:
	adrp	x8, _jail_errmsg@GOTPAGE
Lloh17:
	ldr	x8, [x8, _jail_errmsg@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_jail_warnx
	mov	x0, x19
	bl	_failed
LBB0_15:
	mov	x0, x20
	mov	w1, #1
	bl	_jailparam_free
LBB0_16:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"jid"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_jail_errmsg,4,2                ; @jail_errmsg
	.comm	_IP_ALLOW_DYING,8,3             ; @IP_ALLOW_DYING
	.comm	_JAIL_UPDATE,4,2                ; @JAIL_UPDATE
	.comm	_JAIL_DYING,4,2                 ; @JAIL_DYING
	.no_dead_strip	_update_jail
.subsections_via_symbols
