	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_root_update_work
_do_root_update_work:                   ## @do_root_update_work
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rsi
	callq	_provide_builtin
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	48(%rbp), %r9d
	movl	40(%rbp), %r8d
	movq	32(%rbp), %rcx
	movq	24(%rbp), %rdx
	movq	16(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_fetch_root_key
	movq	%rax, %r12
	movl	(%rax), %ebx
	testq	%r15, %r15
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.3:
	cmpl	$0, 64(%rbp)
	je	LBB0_10
## %bb.4:
	cmpq	$0, 8(%r12)
	jne	LBB0_10
## %bb.5:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_7:
	movq	%r12, %rdi
	callq	_ub_resolve_free
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	24(%rbp), %rdx
	movq	32(%rbp), %rcx
	movl	40(%rbp), %r8d
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	48(%rbp), %r9d
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_fetch_root_key
	movq	%rax, %r12
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.9:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	cmpl	$0, (%r12)
	setne	%bl
	cmoveq	%rax, %r15
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movq	_verb@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpl	$0, 56(%rbp)
	jne	LBB0_15
## %bb.11:
	cmpq	$0, 8(%r12)
	je	LBB0_15
## %bb.12:
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_14:
	movq	%r12, %rdi
	callq	_ub_resolve_free
	jmp	LBB0_25
LBB0_15:
	cmpl	$0, 56(%rbp)
	je	LBB0_18
## %bb.16:
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_str.5(%rip), %rdi
	callq	_puts
LBB0_18:
	movq	%r12, %rdi
	callq	_ub_resolve_free
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.23:
	cmpl	$0, 56(%rbp)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_21
LBB0_24:
	movl	72(%rbp), %eax
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	movl	48(%rbp), %eax
	pushq	%rax
	movl	40(%rbp), %eax
	pushq	%rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	%r15
	callq	_do_certupdate
	addq	$48, %rsp
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	je	LBB0_25
	jmp	LBB0_26
LBB0_19:
	movq	%r14, %rdi
	callq	_probe_date_allows_certupdate
	cmpl	$0, 56(%rbp)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_24
## %bb.20:
	testq	%rax, %rax
	jne	LBB0_24
LBB0_21:
	cmpq	$0, (%r13)
	je	LBB0_25
## %bb.22:
	leaq	L_str.4(%rip), %rdi
	callq	_puts
LBB0_25:
	movl	-44(%rbp), %eax
LBB0_26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verb,8,3                       ## @verb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s failed, retrying direct\n"

L_str:                                  ## @str
	.asciz	"success: the anchor is ok"

L_str.4:                                ## @str.4
	.asciz	"fail: the anchor is NOT ok and could not be fixed"

L_str.5:                                ## @str.5
	.asciz	"debug cert update forced"

	.no_dead_strip	_do_root_update_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_root_update_work
_do_root_update_work:                   ; @do_root_update_work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	str	wzr, [sp, #76]
	add	x1, sp, #76
	bl	_provide_builtin
	cbz	w0, LBB0_25
; %bb.1:
	stp	x24, x23, [sp, #40]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #56]             ; 16-byte Folded Spill
	ldp	w27, w23, [x29, #28]
	ldr	w28, [x29, #24]
	ldr	x21, [x29, #16]
	mov	x0, x26
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	mov	x4, x28
	mov	x5, x27
	bl	_fetch_root_key
	mov	x22, x0
	ldr	w24, [x0]
Lloh0:
	adrp	x10, _verb@GOTPAGE
Lloh1:
	ldr	x10, [x10, _verb@GOTPAGEOFF]
	cbz	x20, LBB0_4
; %bb.2:
	ldr	w8, [x29, #36]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_9
LBB0_4:
	ldr	x8, [x10]
	cbnz	w23, LBB0_14
LBB0_5:
	ldr	x9, [x22, #8]
	cbz	x9, LBB0_14
; %bb.6:
	cbz	x8, LBB0_8
; %bb.7:
Lloh2:
	adrp	x0, l_str@PAGE
Lloh3:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_8:
	mov	x0, x22
	bl	_ub_resolve_free
	ldr	w0, [sp, #76]
	b	LBB0_25
LBB0_9:
	ldr	x8, [x10]
	cbz	x8, LBB0_11
; %bb.10:
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_11:
	mov	x0, x22
	bl	_ub_resolve_free
	mov	x0, x26
	mov	x1, #0
	mov	x2, x19
	mov	x3, x21
	mov	x4, x28
	mov	x5, x27
	bl	_fetch_root_key
	mov	x22, x0
	cbz	w24, LBB0_13
; %bb.12:
	ldr	w8, [x22]
	cmp	w8, #0
	cset	w24, ne
	csel	x20, xzr, x20, eq
LBB0_13:
Lloh6:
	adrp	x10, _verb@GOTPAGE
Lloh7:
	ldr	x10, [x10, _verb@GOTPAGEOFF]
	ldr	x8, [x10]
	cbz	w23, LBB0_5
LBB0_14:
	str	x25, [sp, #32]                  ; 8-byte Folded Spill
	mov	x25, x10
	cbz	w23, LBB0_17
; %bb.15:
	cbz	x8, LBB0_17
; %bb.16:
Lloh8:
	adrp	x0, l_str.5@PAGE
Lloh9:
	add	x0, x0, l_str.5@PAGEOFF
	bl	_puts
LBB0_17:
	mov	x0, x22
	bl	_ub_resolve_free
	cbz	w24, LBB0_19
; %bb.18:
	cbnz	w23, LBB0_24
	b	LBB0_21
LBB0_19:
	mov	x0, x26
	bl	_probe_date_allows_certupdate
	cbnz	w23, LBB0_24
; %bb.20:
	cbnz	x0, LBB0_24
LBB0_21:
	ldr	x8, [x25]
	cbz	x8, LBB0_23
; %bb.22:
Lloh10:
	adrp	x0, l_str.4@PAGE
Lloh11:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
LBB0_23:
	ldr	w0, [sp, #76]
	b	LBB0_25
LBB0_24:
	ldr	w8, [x29, #40]
	stp	w27, w8, [sp, #12]
	str	w28, [sp, #8]
	str	x21, [sp]
	mov	x0, x26
	ldp	x1, x2, [sp, #32]               ; 16-byte Folded Reload
	ldp	x3, x4, [sp, #48]               ; 16-byte Folded Reload
	ldr	x5, [sp, #64]                   ; 8-byte Folded Reload
	mov	x6, x20
	mov	x7, x19
	bl	_do_certupdate
	ldr	w8, [sp, #76]
	cmp	x0, #0
	csinc	w0, w8, wzr, eq
LBB0_25:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_verb,8,3                       ; @verb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s failed, retrying direct\n"

l_str:                                  ; @str
	.asciz	"success: the anchor is ok"

l_str.4:                                ; @str.4
	.asciz	"fail: the anchor is NOT ok and could not be fixed"

l_str.5:                                ; @str.5
	.asciz	"debug cert update forced"

	.no_dead_strip	_do_root_update_work
.subsections_via_symbols
