	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function server_eku_purpose
_server_eku_purpose:                    ## @server_eku_purpose
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$128, -184(%rbp)
	leaq	-176(%rbp), %rdx
	leaq	-184(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_gnutls_x509_crt_get_key_purpose_oid
	movq	_GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE@GOTPCREL(%rip), %r12
	movl	$1, %r15d
	cmpl	(%r12), %eax
	je	LBB0_9
## %bb.1:
	movl	$1, %ebx
	leaq	-176(%rbp), %r13
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_GNUTLS_KP_TLS_WWW_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GNUTLS_KP_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$128, -184(%rbp)
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%r13, %rdx
	leaq	-184(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_gnutls_x509_crt_get_key_purpose_oid
	incl	%ebx
	cmpl	(%r12), %eax
	jne	LBB0_2
## %bb.7:
	cmpl	$1, %ebx
	je	LBB0_9
## %bb.8:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r15d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE,4,2 ## @GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GnuTLS: Failed to get EKU"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"GnuTLS: Certificate purpose: %s"

	.comm	_GNUTLS_KP_TLS_WWW_SERVER,4,2   ## @GNUTLS_KP_TLS_WWW_SERVER
	.comm	_GNUTLS_KP_ANY,4,2              ## @GNUTLS_KP_ANY
	.no_dead_strip	_server_eku_purpose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function server_eku_purpose
_server_eku_purpose:                    ; @server_eku_purpose
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	w8, #128
	str	x8, [sp, #16]
	add	x22, sp, #24
	add	x2, sp, #24
	add	x3, sp, #16
	mov	w1, #0
	mov	x4, #0
	bl	_gnutls_x509_crt_get_key_purpose_oid
Lloh3:
	adrp	x23, _GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_4
LBB0_1:
	mov	w0, #1
LBB0_2:
	ldur	x8, [x29, #-88]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.3:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_4:
Lloh8:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	adrp	x25, _GNUTLS_KP_TLS_WWW_SERVER@GOTPAGE
Lloh11:
	ldr	x25, [x25, _GNUTLS_KP_TLS_WWW_SERVER@GOTPAGEOFF]
	mov	w20, #1
	mov	w26, #128
Lloh12:
	adrp	x27, _GNUTLS_KP_ANY@GOTPAGE
Lloh13:
	ldr	x27, [x27, _GNUTLS_KP_ANY@GOTPAGEOFF]
Lloh14:
	adrp	x21, l_.str.1@PAGE
Lloh15:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w0, #31, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	str	x22, [sp]
	mov	x1, x21
	bl	_wpa_printf
	ldr	w1, [x25]
	add	x0, sp, #24
	bl	_os_strcmp
	cbz	x0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x27]
	add	x0, sp, #24
	bl	_os_strcmp
	cbz	x0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x26, [sp, #16]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x20
	mov	x4, #0
	bl	_gnutls_x509_crt_get_key_purpose_oid
	ldr	w8, [x23]
	add	w20, w20, #1
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.9:
	cmp	w20, #1
	b.eq	LBB0_1
; %bb.10:
	mov	w0, #0
	b	LBB0_2
LBB0_11:
Lloh16:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_2
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE,4,2 ; @GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GnuTLS: Failed to get EKU"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"GnuTLS: Certificate purpose: %s"

	.comm	_GNUTLS_KP_TLS_WWW_SERVER,4,2   ; @GNUTLS_KP_TLS_WWW_SERVER
	.comm	_GNUTLS_KP_ANY,4,2              ; @GNUTLS_KP_ANY
	.no_dead_strip	_server_eku_purpose
.subsections_via_symbols
