	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_verify_cert               ## -- Begin function X509_verify_cert
	.p2align	4, 0x90
_X509_verify_cert:                      ## @X509_verify_cert
	.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
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.4:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_X509_F_X509_VERIFY_CERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_X509_F_X509_VERIFY_CERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_X509_R_NO_CERT_SET_FOR_US_TO_VERIFY@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_X509err
	movq	_X509_V_ERR_INVALID_CALL@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	$-1, %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	32(%rbx), %r14
	xorl	%eax, %eax
	callq	_sk_X509_new_null
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	16(%rbx), %rsi
	movq	%rax, %rdi
	callq	_sk_X509_push
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	16(%rbx), %rdi
	callq	_X509_up_ref
	movl	$1, 8(%rbx)
	movq	16(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_check_key_level
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	16(%rbx), %rsi
	movq	_X509_V_ERR_EE_KEY_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_verify_cb_cert
	testl	%eax, %eax
	je	LBB0_17
LBB0_11:
	movq	%r14, %rdi
	callq	_DANETLS_ENABLED
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	callq	_dane_verify
	jmp	LBB0_14
LBB0_8:
	movq	_X509_F_X509_VERIFY_CERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
	movq	_X509_V_ERR_OUT_OF_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_13:
	callq	_verify_chain
LBB0_14:
	movl	%eax, %r15d
	testl	%eax, %eax
	jg	LBB0_17
## %bb.15:
	movq	(%rbx), %rax
	movq	_X509_V_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	_X509_V_ERR_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_F_X509_VERIFY_CERT,4,2    ## @X509_F_X509_VERIFY_CERT
	.comm	_X509_R_NO_CERT_SET_FOR_US_TO_VERIFY,4,2 ## @X509_R_NO_CERT_SET_FOR_US_TO_VERIFY
	.comm	_X509_V_ERR_INVALID_CALL,8,3    ## @X509_V_ERR_INVALID_CALL
	.comm	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED,4,2 ## @ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_X509_V_ERR_OUT_OF_MEM,8,3      ## @X509_V_ERR_OUT_OF_MEM
	.comm	_X509_V_ERR_EE_KEY_TOO_SMALL,4,2 ## @X509_V_ERR_EE_KEY_TOO_SMALL
	.comm	_X509_V_OK,8,3                  ## @X509_V_OK
	.comm	_X509_V_ERR_UNSPECIFIED,8,3     ## @X509_V_ERR_UNSPECIFIED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_verify_cert               ; -- Begin function X509_verify_cert
	.p2align	2
_X509_verify_cert:                      ; @X509_verify_cert
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _X509_F_X509_VERIFY_CERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_F_X509_VERIFY_CERT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _X509_F_X509_VERIFY_CERT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _X509_F_X509_VERIFY_CERT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _X509_R_NO_CERT_SET_FOR_US_TO_VERIFY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _X509_R_NO_CERT_SET_FOR_US_TO_VERIFY@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	bl	_X509err
Lloh10:
	adrp	x8, _X509_V_ERR_INVALID_CALL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _X509_V_ERR_INVALID_CALL@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x20, [x19, #32]
	bl	_sk_X509_new_null
	str	x0, [x19, #24]
	cbz	x0, LBB0_13
; %bb.8:
	ldr	x1, [x19, #16]
	bl	_sk_X509_push
	cbz	w0, LBB0_13
; %bb.9:
	ldr	x0, [x19, #16]
	bl	_X509_up_ref
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_check_key_level
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	x1, [x19, #16]
Lloh12:
	adrp	x8, _X509_V_ERR_EE_KEY_TOO_SMALL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _X509_V_ERR_EE_KEY_TOO_SMALL@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_verify_cb_cert
	cbz	w0, LBB0_6
LBB0_11:
	mov	x0, x20
	bl	_DANETLS_ENABLED
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_dane_verify
	cmp	w0, #0
	b.gt	LBB0_6
	b	LBB0_15
LBB0_13:
Lloh15:
	adrp	x8, _X509_F_X509_VERIFY_CERT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _X509_F_X509_VERIFY_CERT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_X509err
Lloh21:
	adrp	x8, _X509_V_ERR_OUT_OF_MEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _X509_V_ERR_OUT_OF_MEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_14:
	mov	x0, x19
	bl	_verify_chain
	cmp	w0, #0
	b.gt	LBB0_6
LBB0_15:
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _X509_V_OK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _X509_V_OK@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.16:
Lloh26:
	adrp	x8, _X509_V_ERR_UNSPECIFIED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _X509_V_ERR_UNSPECIFIED@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_F_X509_VERIFY_CERT,4,2    ; @X509_F_X509_VERIFY_CERT
	.comm	_X509_R_NO_CERT_SET_FOR_US_TO_VERIFY,4,2 ; @X509_R_NO_CERT_SET_FOR_US_TO_VERIFY
	.comm	_X509_V_ERR_INVALID_CALL,8,3    ; @X509_V_ERR_INVALID_CALL
	.comm	_ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED,4,2 ; @ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_X509_V_ERR_OUT_OF_MEM,8,3      ; @X509_V_ERR_OUT_OF_MEM
	.comm	_X509_V_ERR_EE_KEY_TOO_SMALL,4,2 ; @X509_V_ERR_EE_KEY_TOO_SMALL
	.comm	_X509_V_OK,8,3                  ; @X509_V_OK
	.comm	_X509_V_ERR_UNSPECIFIED,8,3     ; @X509_V_ERR_UNSPECIFIED
.subsections_via_symbols
