	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_match_suffix_helper
_tls_match_suffix_helper:               ## @tls_match_suffix_helper
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_ALT_NAMES_OID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_wolfSSL_X509_get_ext_d2i
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%r12, %rdi
	callq	_wolfSSL_sk_num
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movq	%r12, %rdi
	callq	_wolfSSL_sk_num
	cmpl	%eax, %ebx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_wolfSSL_sk_value
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_ASN_DNS_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %r12
	movl	(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_os_strlen
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_wpa_hexdump_ascii
	movq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_os_strlen
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_domain_suffix_match
	cmpl	$1, %eax
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movq	%r12, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_7:
	movq	%r12, %rdi
	callq	_wolfSSL_sk_ASN1_OBJECT_free
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.8:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_20
LBB0_9:
	movq	%r12, %rdi
	callq	_wolfSSL_sk_ASN1_OBJECT_free
LBB0_10:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_wolfSSL_X509_get_subject_name
	movq	%rax, %r13
	movq	_ASN_COMMON_NAME@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	movl	$-1, %edx
	callq	_wolfSSL_X509_NAME_get_index_by_NID
	cmpl	$-1, %eax
	je	LBB0_17
## %bb.11:
	movl	%eax, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_wolfSSL_X509_NAME_get_index_by_NID
	movl	%eax, %r15d
	cmpl	$-1, %eax
	je	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_wolfSSL_X509_NAME_get_entry
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %rdi
	callq	_wolfSSL_X509_NAME_ENTRY_get_data
	testq	%rax, %rax
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %rbx
	movl	(%r14), %edi
	movq	(%rax), %rdx
	movl	8(%rax), %ecx
	leaq	L_.str.8(%rip), %rsi
	callq	_wpa_hexdump_ascii
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_domain_suffix_match
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.16:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_19
LBB0_17:
	movl	(%r14), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_20
LBB0_18:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_wolfSSL_sk_ASN1_OBJECT_free
LBB0_19:
	movl	$1, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLS: Match domain against %s%s"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"suffix "

	.comm	_ALT_NAMES_OID,4,2              ## @ALT_NAMES_OID
	.comm	_ASN_DNS_TYPE,8,3               ## @ASN_DNS_TYPE
L_.str.3:                               ## @.str.3
	.asciz	"TLS: Certificate dNSName"

L_.str.4:                               ## @.str.4
	.asciz	"TLS: %s in dNSName found"

L_.str.5:                               ## @.str.5
	.asciz	"Match"

L_.str.6:                               ## @.str.6
	.asciz	"Suffix match"

L_.str.7:                               ## @.str.7
	.asciz	"TLS: None of the dNSName(s) matched"

	.comm	_ASN_COMMON_NAME,4,2            ## @ASN_COMMON_NAME
L_.str.8:                               ## @.str.8
	.asciz	"TLS: Certificate commonName"

L_.str.9:                               ## @.str.9
	.asciz	"TLS: %s in commonName found"

L_.str.10:                              ## @.str.10
	.asciz	"TLS: No CommonName %smatch found"

	.no_dead_strip	_tls_match_suffix_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_match_suffix_helper
_tls_match_suffix_helper:               ; @tls_match_suffix_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x3
	str	x2, [sp, #40]                   ; 8-byte Folded Spill
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh4:
	adrp	x9, l_.str.2@PAGE
Lloh5:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w3, #0
	csel	x20, x9, x8, eq
	stp	x20, x1, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh8:
	adrp	x8, _ALT_NAMES_OID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ALT_NAMES_OID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, #0
	mov	x3, #0
	bl	_wolfSSL_X509_get_ext_d2i
	mov	x23, x0
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, x23
	bl	_wolfSSL_sk_num
	cmp	w0, #1
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	mov	w22, #0
	b.lt	LBB0_7
; %bb.2:
	mov	w24, #0
Lloh11:
	adrp	x25, _ASN_DNS_TYPE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ASN_DNS_TYPE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	mov	x0, x23
	bl	_wolfSSL_sk_num
	cmp	w24, w0
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_wolfSSL_sk_value
	ldr	x8, [x0]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	x27, x28
	ldr	w20, [x28]
	ldr	x28, [x0, #8]
	mov	x0, x28
	bl	_os_strlen
	mov	x3, x0
	mov	x0, x20
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x28
	bl	_wpa_hexdump_ascii
	ldr	x26, [x26, #8]
	mov	x0, x26
	bl	_os_strlen
	mov	x1, x0
	mov	x0, x26
	mov	x2, x21
	ldr	x3, [sp, #40]                   ; 8-byte Folded Reload
	mov	x4, x19
	bl	_domain_suffix_match
	cmp	w0, #1
	b.eq	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	mov	x28, x27
	b	LBB0_3
LBB0_7:
	mov	x0, x23
	bl	_wolfSSL_sk_ASN1_OBJECT_free
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	cbz	w22, LBB0_10
; %bb.8:
	ldr	w0, [x28]
Lloh15:
	adrp	x1, l_.str.7@PAGE
Lloh16:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_18
LBB0_9:
	mov	x0, x23
	bl	_wolfSSL_sk_ASN1_OBJECT_free
LBB0_10:
	mov	x0, x24
	bl	_wolfSSL_X509_get_subject_name
	mov	x22, x0
Lloh17:
	adrp	x26, _ASN_COMMON_NAME@GOTPAGE
Lloh18:
	ldr	x26, [x26, _ASN_COMMON_NAME@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w2, #-1
	bl	_wolfSSL_X509_NAME_get_index_by_NID
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.11:
	mov	x23, x0
Lloh19:
	adrp	x24, l_.str.8@PAGE
Lloh20:
	add	x24, x24, l_.str.8@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	mov	x2, x23
	bl	_wolfSSL_X509_NAME_get_index_by_NID
	mov	x23, x0
	cmn	w0, #1
	b.eq	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_wolfSSL_X509_NAME_get_entry
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_wolfSSL_X509_NAME_ENTRY_get_data
	cbz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x25, x0
	ldr	w0, [x28]
	ldr	x2, [x25]
	ldr	w3, [x25, #8]
	mov	x1, x24
	bl	_wpa_hexdump_ascii
	ldr	x0, [x25]
	ldr	w1, [x25, #8]
	mov	x2, x21
	ldr	x3, [sp, #40]                   ; 8-byte Folded Reload
	mov	x4, x19
	bl	_domain_suffix_match
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.16:
	ldr	w0, [x28]
Lloh21:
	adrp	x8, l_.str.5@PAGE
Lloh22:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh23:
	adrp	x9, l_.str.6@PAGE
Lloh24:
	add	x9, x9, l_.str.6@PAGEOFF
	cmp	w19, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.9@PAGE
Lloh26:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
	mov	w0, #1
	b	LBB0_19
LBB0_17:
	ldr	w0, [x28]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.10@PAGE
Lloh28:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_18:
	bl	_wpa_printf
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_20:
	ldr	w0, [x27]
Lloh29:
	adrp	x8, l_.str.5@PAGE
Lloh30:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh31:
	adrp	x9, l_.str.6@PAGE
Lloh32:
	add	x9, x9, l_.str.6@PAGEOFF
	cmp	w19, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	mov	x0, x23
	bl	_wolfSSL_sk_ASN1_OBJECT_free
	mov	w0, #1
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLS: Match domain against %s%s"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"suffix "

	.comm	_ALT_NAMES_OID,4,2              ; @ALT_NAMES_OID
	.comm	_ASN_DNS_TYPE,8,3               ; @ASN_DNS_TYPE
l_.str.3:                               ; @.str.3
	.asciz	"TLS: Certificate dNSName"

l_.str.4:                               ; @.str.4
	.asciz	"TLS: %s in dNSName found"

l_.str.5:                               ; @.str.5
	.asciz	"Match"

l_.str.6:                               ; @.str.6
	.asciz	"Suffix match"

l_.str.7:                               ; @.str.7
	.asciz	"TLS: None of the dNSName(s) matched"

	.comm	_ASN_COMMON_NAME,4,2            ; @ASN_COMMON_NAME
l_.str.8:                               ; @.str.8
	.asciz	"TLS: Certificate commonName"

l_.str.9:                               ; @.str.9
	.asciz	"TLS: %s in commonName found"

l_.str.10:                              ; @.str.10
	.asciz	"TLS: No CommonName %smatch found"

	.no_dead_strip	_tls_match_suffix_helper
.subsections_via_symbols
