	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_certificate
_print_certificate:                     ## @print_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_hx509_cert_get_friendly_name
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
LBB0_2:
	movl	%ebx, %edi
	callq	__hx509_cert_private_key
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movl	%r14d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_hx509_print_cert
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	leaq	-28(%rbp), %rsi
	movl	%r14d, %edi
	callq	_hx509_validate_ctx_init
	movl	-28(%rbp), %edi
	movq	_hx509_print_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hx509_validate_ctx_set_print
	movl	-28(%rbp), %edi
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hx509_validate_ctx_add_flags
	movl	-28(%rbp), %edi
	movq	_HX509_VALIDATE_F_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hx509_validate_ctx_add_flags
	movl	-28(%rbp), %esi
	movl	%r14d, %edi
	movl	%ebx, %edx
	callq	_hx509_validate_cert
	movl	-28(%rbp), %edi
	callq	_hx509_validate_ctx_free
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"    friendly name: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"    private key: %s\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"no"

L_.str.4:                               ## @.str.4
	.asciz	"failed to print cert"

	.comm	_hx509_print_stdout,4,2         ## @hx509_print_stdout
	.comm	_stdout,4,2                     ## @stdout
	.comm	_HX509_VALIDATE_F_VALIDATE,4,2  ## @HX509_VALIDATE_F_VALIDATE
	.comm	_HX509_VALIDATE_F_VERBOSE,4,2   ## @HX509_VALIDATE_F_VERBOSE
	.no_dead_strip	_print_certificate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_certificate
_print_certificate:                     ; @print_certificate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_hx509_cert_get_friendly_name
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_2:
	mov	x0, x19
	bl	__hx509_cert_private_key
Lloh2:
	adrp	x8, l_.str.2@PAGE
Lloh3:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh4:
	adrp	x9, l_.str.3@PAGE
Lloh5:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x0, #0
	csel	x1, x9, x8, eq
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_hx509_print_cert
	cbz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	cbz	w21, LBB0_6
; %bb.5:
	add	x1, sp, #12
	mov	x0, x20
	bl	_hx509_validate_ctx_init
	ldr	w0, [sp, #12]
Lloh10:
	adrp	x8, _hx509_print_stdout@GOTPAGE
Lloh11:
	ldr	x8, [x8, _hx509_print_stdout@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _stdout@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_hx509_validate_ctx_set_print
	ldr	w0, [sp, #12]
Lloh16:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_hx509_validate_ctx_add_flags
	ldr	w0, [sp, #12]
Lloh19:
	adrp	x8, _HX509_VALIDATE_F_VERBOSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HX509_VALIDATE_F_VERBOSE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_hx509_validate_ctx_add_flags
	ldr	w1, [sp, #12]
	mov	x0, x20
	mov	x2, x19
	bl	_hx509_validate_cert
	ldr	w0, [sp, #12]
	bl	_hx509_validate_ctx_free
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"    friendly name: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"    private key: %s\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"no"

l_.str.4:                               ; @.str.4
	.asciz	"failed to print cert"

	.comm	_hx509_print_stdout,4,2         ; @hx509_print_stdout
	.comm	_stdout,4,2                     ; @stdout
	.comm	_HX509_VALIDATE_F_VALIDATE,4,2  ; @HX509_VALIDATE_F_VALIDATE
	.comm	_HX509_VALIDATE_F_VERBOSE,4,2   ; @HX509_VALIDATE_F_VERBOSE
	.no_dead_strip	_print_certificate
.subsections_via_symbols
