	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_updatedb
_do_updatedb:                           ## @do_updatedb
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_ASN1_UTCTIME_new
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_X509_gmtime_adj
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	(%rbx), %edi
	incl	%edi
	leaq	L_.str(%rip), %rsi
	callq	_app_malloc
	movq	%rax, %r15
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rax, %rdi
	callq	_memcpy
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %rax
	movb	$0, (%r15,%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_strncmp
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_sk_OPENSSL_PSTRING_num
	testl	%eax, %eax
	jle	LBB0_14
## %bb.4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_DB_type@GOTPCREL(%rip), %rbx
	xorl	%r13d, %r13d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_DB_TYPE_EXP@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movq	_DB_type@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	(%r15,%rcx,8), %rcx
	movb	%al, (%rcx)
	movq	(%rbx), %rax
	movq	(%r15,%rax,8), %rax
	movb	$0, 1(%rax)
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DB_serial@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_BIO_printf
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_sk_OPENSSL_PSTRING_num
	cmpl	%eax, %r13d
	jge	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_sk_OPENSSL_PSTRING_value
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	(%r15,%rax,8), %rax
	movzbl	(%rax), %eax
	movq	_DB_TYPE_VAL@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	setle	%r12b
	movq	_DB_exp_date@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%r15,%rax,8), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	setle	%cl
	xorb	%r12b, %cl
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rbx, %rbx
	jg	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	jg	LBB0_11
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rax
	movq	(%r15,%rax,8), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	testq	%rax, %rax
	jle	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_DB_type@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_14:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ASN1_UTCTIME_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_OPENSSL_free
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_15
LBB0_2:
	movq	%rbx, %rdi
	callq	_ASN1_UTCTIME_free
LBB0_15:
	movl	%r15d, %eax
	addq	$40, %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	"time string"

L_.str.1:                               ## @.str.1
	.asciz	"49"

	.comm	_DB_type,8,3                    ## @DB_type
	.comm	_DB_TYPE_VAL,1,0                ## @DB_TYPE_VAL
	.comm	_DB_exp_date,8,3                ## @DB_exp_date
	.comm	_DB_TYPE_EXP,1,0                ## @DB_TYPE_EXP
	.comm	_bio_err,4,2                    ## @bio_err
L_.str.2:                               ## @.str.2
	.asciz	"%s=Expired\n"

	.comm	_DB_serial,8,3                  ## @DB_serial
	.no_dead_strip	_do_updatedb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_updatedb
_do_updatedb:                           ; @do_updatedb
	.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	x20, x0
	bl	_ASN1_UTCTIME_new
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	mov	w1, #0
	bl	_X509_gmtime_adj
	cbz	x0, LBB0_12
; %bb.2:
	ldr	w8, [x19]
	add	w0, w8, #1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_app_malloc
	mov	x21, x0
	ldp	w2, w1, [x19]
	bl	_memcpy
	ldrsw	x8, [x19]
	strb	wzr, [x21, x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x21
	mov	w2, #2
	bl	_strncmp
	mov	x23, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_sk_OPENSSL_PSTRING_num
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.3:
	mov	w22, #0
	mov	w24, #0
Lloh4:
	adrp	x28, _DB_type@GOTPAGE
Lloh5:
	ldr	x28, [x28, _DB_type@GOTPAGEOFF]
Lloh6:
	adrp	x26, _DB_TYPE_VAL@GOTPAGE
Lloh7:
	ldr	x26, [x26, _DB_TYPE_VAL@GOTPAGEOFF]
Lloh8:
	adrp	x25, _DB_exp_date@GOTPAGE
Lloh9:
	ldr	x25, [x25, _DB_exp_date@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh10:
	adrp	x8, _DB_TYPE_EXP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DB_TYPE_EXP@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldr	x9, [x28]
	ldr	x9, [x27, x9, lsl #3]
	strb	w8, [x9]
	ldr	x8, [x28]
	ldr	x8, [x27, x8, lsl #3]
	strb	wzr, [x8, #1]
	add	w22, w22, #1
Lloh12:
	adrp	x8, _bio_err@GOTPAGE
Lloh13:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _DB_serial@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DB_serial@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x2, [x27, x8, lsl #3]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_BIO_printf
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_sk_OPENSSL_PSTRING_num
	cmp	w24, w0
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x24
	bl	_sk_OPENSSL_PSTRING_value
	ldr	x8, [x28]
	ldr	x8, [x0, x8, lsl #3]
	ldrb	w8, [x8]
	ldrb	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x0
	cmp	x23, #1
	cset	w21, lt
	ldr	x8, [x25]
	ldr	x0, [x0, x8, lsl #3]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #2
	bl	_strncmp
	cmp	x0, #1
	cset	w8, lt
	eor	w8, w21, w8
	tbz	w8, #0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x23, #0
	b.gt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x0, #1
	b.ge	LBB0_4
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	ldr	x0, [x27, x8, lsl #3]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_strcmp
	cmp	x0, #1
	b.lt	LBB0_4
	b	LBB0_5
LBB0_11:
	mov	w22, #-1
	b	LBB0_15
LBB0_12:
	mov	x0, x19
	bl	_ASN1_UTCTIME_free
	mov	w22, #-1
	b	LBB0_15
LBB0_13:
	mov	w22, #0
LBB0_14:
	mov	x0, x19
	bl	_ASN1_UTCTIME_free
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_OPENSSL_free
LBB0_15:
	mov	x0, x22
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"time string"

l_.str.1:                               ; @.str.1
	.asciz	"49"

	.comm	_DB_type,8,3                    ; @DB_type
	.comm	_DB_TYPE_VAL,1,0                ; @DB_TYPE_VAL
	.comm	_DB_exp_date,8,3                ; @DB_exp_date
	.comm	_DB_TYPE_EXP,1,0                ; @DB_TYPE_EXP
	.comm	_bio_err,4,2                    ; @bio_err
l_.str.2:                               ; @.str.2
	.asciz	"%s=Expired\n"

	.comm	_DB_serial,8,3                  ; @DB_serial
	.no_dead_strip	_do_updatedb
.subsections_via_symbols
