	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_dn_field
_match_dn_field:                        ## @match_dn_field
	.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	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	%rcx, %rdi
	callq	_os_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_X509_get_subject_name
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_get_dn_field_index
	xorl	%r14d, %r14d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_17
## %bb.1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$-1, %edx
	callq	_X509_NAME_get_index_by_NID
	testl	%eax, %eax
	js	LBB0_17
## %bb.2:
	movl	%eax, %r12d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_X509_NAME_get_index_by_NID
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_X509_NAME_get_entry
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	callq	_X509_NAME_ENTRY_get_data
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r15d
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jne	LBB0_3
## %bb.7:
	movq	%rax, %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_13
## %bb.8:
	leal	-1(%rbx), %r12d
	cmpb	$42, (%r15,%r12)
	jne	LBB0_13
## %bb.9:
	movq	%r14, %rdi
	callq	_ASN1_STRING_length
	cmpl	%r12d, %eax
	jl	LBB0_15
## %bb.10:
	movq	%r14, %rdi
	callq	_ASN1_STRING_get0_data
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	%r12d, %edx
	jmp	LBB0_11
LBB0_13:
	movq	%r14, %rdi
	callq	_ASN1_STRING_length
	cmpl	%ebx, %eax
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_ASN1_STRING_get0_data
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
LBB0_11:
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_15:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_ASN1_STRING_get0_data
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_wpa_printf
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$1, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpenSSL: Failed to match %s '%s' with certificate DN field value '%s'"

	.no_dead_strip	_match_dn_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_dn_field
_match_dn_field:                        ; @match_dn_field
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x24, x0
	mov	x0, x3
	bl	_os_strlen
	mov	x21, x0
	mov	x0, x24
	bl	_X509_get_subject_name
	mov	x24, x0
	mov	x0, x23
	mov	x1, x22
	bl	_get_dn_field_index
	tbnz	w0, #31, LBB0_14
; %bb.1:
	mov	x25, x0
	mov	x0, x24
	mov	x1, x22
	mov	w2, #-1
	bl	_X509_NAME_get_index_by_NID
	tbnz	w0, #31, LBB0_14
; %bb.2:
	mov	x26, x0
	mov	w27, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x22
	mov	x2, x26
	bl	_X509_NAME_get_index_by_NID
	mov	x26, x0
	tbnz	w0, #31, LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x26
	bl	_X509_NAME_get_entry
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_X509_NAME_ENTRY_get_data
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w27, #1
	cmp	w27, w25
	b.ne	LBB0_3
; %bb.7:
	mov	x23, x0
	subs	w22, w21, #1
	b.lt	LBB0_11
; %bb.8:
	ldrb	w8, [x19, w22, uxtw]
	cmp	w8, #42
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x23
	bl	_ASN1_STRING_length
	cmp	w0, w22
	b.lt	LBB0_13
; %bb.10:
	mov	x0, x23
	bl	_ASN1_STRING_get0_data
	mov	x1, x19
	mov	x2, x22
	bl	_os_memcmp
	cbnz	x0, LBB0_13
	b	LBB0_16
LBB0_11:
	mov	x0, x23
	bl	_ASN1_STRING_length
	cmp	w0, w21
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x23
	bl	_ASN1_STRING_get0_data
	mov	x1, x19
	mov	x2, x21
	bl	_os_memcmp
	cbz	x0, LBB0_16
LBB0_13:
Lloh0:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x23
	bl	_ASN1_STRING_get0_data
	mov	x4, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_wpa_printf
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w0, #1
	b	LBB0_15
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpenSSL: Failed to match %s '%s' with certificate DN field value '%s'"

	.no_dead_strip	_match_dn_field
.subsections_via_symbols
