	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function matches_common_name
_matches_common_name:                   ## @matches_common_name
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_X509_get_subject_name
	movq	_NID_commonName@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$-1, %edx
	callq	_X509_NAME_get_index_by_NID
	movq	_Error@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_X509_get_subject_name
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_X509_NAME_get_entry
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rdi
	callq	_X509_NAME_ENTRY_get_data
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ASN1_STRING_get0_data
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ASN1_STRING_length
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_strlen
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_Curl_cert_hostcheck
	movq	_CURL_HOST_MATCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	_MatchFound@GOTPCREL(%rip), %r12
	jmp	LBB0_8
LBB0_4:
	movq	_MalformedCertificate@GOTPCREL(%rip), %r12
	jmp	LBB0_8
LBB0_6:
	movq	_MatchNotFound@GOTPCREL(%rip), %r12
LBB0_8:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_commonName,4,2             ## @NID_commonName
	.comm	_Error,4,2                      ## @Error
	.comm	_MalformedCertificate,4,2       ## @MalformedCertificate
	.comm	_CURL_HOST_MATCH,8,3            ## @CURL_HOST_MATCH
	.comm	_MatchFound,4,2                 ## @MatchFound
	.comm	_MatchNotFound,4,2              ## @MatchNotFound
	.no_dead_strip	_matches_common_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function matches_common_name
_matches_common_name:                   ; @matches_common_name
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_X509_get_subject_name
Lloh0:
	adrp	x8, _NID_commonName@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_commonName@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #-1
	bl	_X509_NAME_get_index_by_NID
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_X509_get_subject_name
	mov	x1, x21
	bl	_X509_NAME_get_entry
	cbz	x0, LBB0_5
; %bb.2:
	bl	_X509_NAME_ENTRY_get_data
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	bl	_ASN1_STRING_get0_data
	mov	x20, x0
	mov	x0, x21
	bl	_ASN1_STRING_length
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	cmp	x21, x0
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_Curl_cert_hostcheck
Lloh3:
	adrp	x8, _CURL_HOST_MATCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CURL_HOST_MATCH@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _MatchNotFound@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MatchNotFound@GOTPAGEOFF]
Lloh8:
	adrp	x10, _MatchFound@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MatchFound@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x10, x9, eq
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _Error@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Error@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh12:
	adrp	x8, _MalformedCertificate@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MalformedCertificate@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_commonName,4,2             ; @NID_commonName
	.comm	_Error,4,2                      ; @Error
	.comm	_MalformedCertificate,4,2       ; @MalformedCertificate
	.comm	_CURL_HOST_MATCH,8,3            ; @CURL_HOST_MATCH
	.comm	_MatchFound,4,2                 ; @MatchFound
	.comm	_MatchNotFound,4,2              ; @MatchNotFound
	.no_dead_strip	_matches_common_name
.subsections_via_symbols
