	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_certupdate
_do_certupdate:                         ## @do_certupdate
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_X509@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STACK_OF
	movq	%r13, %rdi
	callq	_read_cert_or_builtin
	movq	_cert@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	movl	48(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	56(%rbp), %esi
	movq	16(%rbp), %rdx
	movq	24(%rbp), %rcx
	movq	32(%rbp), %r8
	movl	40(%rbp), %r9d
	callq	_resolve_name
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_https
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_https
	movq	%rax, %rbx
	movl	(%r12), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rax, %rdx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_verify_and_update_anchor
	movq	_verb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_2:
	movq	%r14, %rdi
	callq	_BIO_free
	movq	%rbx, %rdi
	callq	_BIO_free
	movl	(%r12), %edi
	movq	_X509_free@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sk_X509_pop_free
	movq	%r13, %rdi
	callq	_ip_list_free
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509,4,2                       ## @X509
	.comm	_cert,4,2                       ## @cert
	.comm	_verb,8,3                       ## @verb
	.comm	_X509_free,4,2                  ## @X509_free
	.comm	_do_wsa_cleanup,4,2             ## @do_wsa_cleanup
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"success: the anchor has been updated using the cert"

	.no_dead_strip	_do_certupdate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_certupdate
_do_certupdate:                         ; @do_certupdate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	stp	x0, x5, [sp]                    ; 16-byte Folded Spill
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	ldp	w26, w27, [x29, #28]
	ldr	x28, [x29, #16]
	ldr	w22, [x29, #24]
Lloh0:
	adrp	x8, _X509@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_STACK_OF
	mov	x0, x25
	bl	_read_cert_or_builtin
Lloh3:
	adrp	x25, _cert@GOTPAGE
Lloh4:
	ldr	x25, [x25, _cert@GOTPAGEOFF]
	str	w0, [x25]
	mov	x0, x24
	mov	x1, x27
	mov	x2, x20
	mov	x3, x19
	mov	x4, x28
	mov	x5, x22
	mov	x6, x26
	bl	_resolve_name
	mov	x19, x0
	mov	x1, x23
	mov	x2, x24
	bl	_https
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_https
	mov	x21, x0
	ldr	w3, [x25]
	ldp	x0, x4, [sp]                    ; 16-byte Folded Reload
	mov	x1, x20
	mov	x2, x21
	bl	_verify_and_update_anchor
Lloh5:
	adrp	x8, _verb@GOTPAGE
Lloh6:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_2:
	mov	x0, x20
	bl	_BIO_free
	mov	x0, x21
	bl	_BIO_free
	ldr	w0, [x25]
Lloh10:
	adrp	x8, _X509_free@GOTPAGE
Lloh11:
	ldr	x8, [x8, _X509_free@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_sk_X509_pop_free
	mov	x0, x19
	bl	_ip_list_free
	mov	w0, #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_X509,4,2                       ; @X509
	.comm	_cert,4,2                       ; @cert
	.comm	_verb,8,3                       ; @verb
	.comm	_X509_free,4,2                  ; @X509_free
	.comm	_do_wsa_cleanup,4,2             ; @do_wsa_cleanup
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"success: the anchor has been updated using the cert"

	.no_dead_strip	_do_certupdate
.subsections_via_symbols
