	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openssl_debug_dump_certificates
_openssl_debug_dump_certificates:       ## @openssl_debug_dump_certificates
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_X509@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STACK_OF
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_certs@GOTPCREL(%rip), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_SSL_CTX_get0_chain_certs
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%r15), %edi
	callq	_sk_X509_num
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	leal	-1(%rbx), %r12d
	movl	%r12d, %esi
	callq	_sk_X509_value
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_openssl_debug_dump_certificate
	cmpl	$1, %ebx
	movl	%r12d, %ebx
	ja	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	callq	_SSL_CTX_get0_certificate
	xorl	%edi, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_openssl_debug_dump_certificate ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_X509,4,2                       ## @X509
	.comm	_certs,4,2                      ## @certs
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpenSSL: Configured certificate chain"

	.no_dead_strip	_openssl_debug_dump_certificates
.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_certificates
_openssl_debug_dump_certificates:       ; @openssl_debug_dump_certificates
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _X509@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_STACK_OF
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh8:
	adrp	x20, _certs@GOTPAGE
Lloh9:
	ldr	x20, [x20, _certs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_SSL_CTX_get0_chain_certs
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x20]
	bl	_sk_X509_num
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	subs	w1, w21, #1
	bl	_sk_X509_value
	mov	x1, x0
	mov	x0, x21
	bl	_openssl_debug_dump_certificate
	subs	w21, w21, #1
	b.hi	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_SSL_CTX_get0_certificate
	mov	x1, x0
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_openssl_debug_dump_certificate
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_X509,4,2                       ; @X509
	.comm	_certs,4,2                      ; @certs
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpenSSL: Configured certificate chain"

	.no_dead_strip	_openssl_debug_dump_certificates
.subsections_via_symbols
