	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_cert_hostname
_validate_cert_hostname:                ## @validate_cert_hostname
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_ErrorOnNul@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_get_subject_alt_names
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_X509_get_subject_name
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_NID_commonName@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-1040(%rbp), %rdx
	movq	%rax, %rdi
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_X509_NAME_get_text_by_NID
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	-1040(%rbp), %rdi
	callq	_strlen
	cmpl	%ebx, %eax
	jne	LBB0_2
LBB0_5:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_SERF_ERROR_SSL_CERT_FAILED@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ErrorOnNul,4,2                 ## @ErrorOnNul
	.comm	_SERF_ERROR_SSL_CERT_FAILED,8,3 ## @SERF_ERROR_SSL_CERT_FAILED
	.comm	_NID_commonName,4,2             ## @NID_commonName
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.no_dead_strip	_validate_cert_hostname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_cert_hostname
_validate_cert_hostname:                ; @validate_cert_hostname
	.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
	sub	sp, sp, #1040
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _ErrorOnNul@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ErrorOnNul@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, x19
	mov	x3, #0
	bl	_get_subject_alt_names
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_X509_get_subject_name
	cbz	x0, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _NID_commonName@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NID_commonName@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #1024
	bl	_X509_NAME_get_text_by_NID
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	mov	x19, x0
	add	x0, sp, #8
	bl	_strlen
	cmp	w0, w19
	b.ne	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _SERF_ERROR_SSL_CERT_FAILED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SERF_ERROR_SSL_CERT_FAILED@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
LBB0_7:
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ErrorOnNul,4,2                 ; @ErrorOnNul
	.comm	_SERF_ERROR_SSL_CERT_FAILED,8,3 ; @SERF_ERROR_SSL_CERT_FAILED
	.comm	_NID_commonName,4,2             ; @NID_commonName
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.no_dead_strip	_validate_cert_hostname
.subsections_via_symbols
