	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openssl_debug_dump_certificate
_openssl_debug_dump_certificate:        ## @openssl_debug_dump_certificate
	.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
	subq	$400, %rsp                      ## imm = 0x190
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	%rsi, %rdi
	callq	_X509_get_subject_name
	leaq	-304(%rbp), %rsi
	movl	%eax, %edi
	movl	$256, %edx                      ## imm = 0x100
	callq	_X509_NAME_oneline
	movq	%r15, %rdi
	callq	_X509_get_serialNumber
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ASN1_STRING_get0_data
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ASN1_STRING_length
	leaq	-432(%rbp), %rdi
	movl	$128, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_wpa_snprintf_hex_uppercase
	jmp	LBB0_3
LBB0_2:
	movb	$0, -432(%rbp)
LBB0_3:
	movq	%r15, %rdi
	callq	_X509_get_pubkey
	movq	%rax, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_openssl_pkey_type_str
	leaq	L_.str(%rip), %rsi
	leaq	-304(%rbp), %rcx
	leaq	-432(%rbp), %r9
	movl	%r15d, %edi
	movl	%r14d, %edx
	movl	%eax, %r8d
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_EVP_PKEY_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$400, %rsp                      ## imm = 0x190
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: %s (%s) %s"

	.no_dead_strip	_openssl_debug_dump_certificate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function openssl_debug_dump_certificate
_openssl_debug_dump_certificate:        ; @openssl_debug_dump_certificate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #464
	.cfi_def_cfa_offset 464
	stp	x28, x27, [sp, #400]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #416]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #432]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #448]            ; 16-byte Folded Spill
	add	x29, sp, #448
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x20, x1
	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, #-56]
	mov	x0, x1
	bl	_X509_get_subject_name
	add	x1, sp, #136
	mov	w2, #256
	bl	_X509_NAME_oneline
	mov	x0, x20
	bl	_X509_get_serialNumber
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	bl	_ASN1_STRING_get0_data
	mov	x22, x0
	mov	x0, x21
	bl	_ASN1_STRING_length
	mov	x3, x0
	add	x0, sp, #8
	mov	w1, #128
	mov	x2, x22
	bl	_wpa_snprintf_hex_uppercase
	b	LBB0_3
LBB0_2:
	strb	wzr, [sp, #8]
LBB0_3:
	mov	x0, x20
	bl	_X509_get_pubkey
	mov	x20, x0
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	bl	_openssl_pkey_type_str
	mov	x4, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #136
	add	x5, sp, #8
	mov	x0, x21
	mov	x2, x19
	bl	_wpa_printf
	mov	x0, x20
	bl	_EVP_PKEY_free
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #448]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #432]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #416]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #400]            ; 16-byte Folded Reload
	add	sp, sp, #464
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: %s (%s) %s"

	.no_dead_strip	_openssl_debug_dump_certificate
.subsections_via_symbols
