	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_print_cert               ## -- Begin function hx509_print_cert
	.p2align	4, 0x90
_hx509_print_cert:                      ## @hx509_print_cert
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movl	%edi, %r15d
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_2:
	leaq	-44(%rbp), %rsi
	movl	%r14d, %edi
	callq	_hx509_cert_get_issuer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movl	-44(%rbp), %edi
	leaq	-40(%rbp), %rsi
	callq	_hx509_name_to_string
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_hx509_name_free
	movq	-40(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-40(%rbp), %rdi
	callq	_free
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_hx509_cert_get_subject
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movl	-44(%rbp), %edi
	leaq	-40(%rbp), %rsi
	callq	_hx509_name_to_string
	leaq	-44(%rbp), %rdi
	callq	_hx509_name_free
	movq	-40(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-40(%rbp), %rdi
	callq	_free
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edi
	callq	_hx509_cert_get_serialnumber
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	leaq	-48(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_der_print_hex_heim_integer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	leaq	-48(%rbp), %rdi
	callq	_der_free_heim_integer
	movq	-40(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-40(%rbp), %rdi
	callq	_free
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
	leaq	-40(%rbp), %rdx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_hx509_cert_keyusage_print
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.5(%rip), %rdi
	movl	$2, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_fwrite
	jmp	LBB0_9
LBB0_7:
	movq	-40(%rbp), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-40(%rbp), %rdi
	callq	_free
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,8,3                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"    issuer:  \"%s\"\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"    serial: %s\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"%s\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_print_cert               ; -- Begin function hx509_print_cert
	.p2align	2
_hx509_print_cert:                      ; @hx509_print_cert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, #0
	csel	x19, x8, x2, eq
	add	x1, sp, #28
	mov	x0, x20
	bl	_hx509_cert_get_issuer
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w0, [sp, #28]
	add	x1, sp, #16
	bl	_hx509_name_to_string
	add	x0, sp, #28
	bl	_hx509_name_free
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x0, [sp, #16]
	bl	_free
	add	x1, sp, #28
	mov	x0, x20
	bl	_hx509_cert_get_subject
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w0, [sp, #28]
	add	x1, sp, #16
	bl	_hx509_name_to_string
	add	x0, sp, #28
	bl	_hx509_name_free
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x0, [sp, #16]
	bl	_free
	add	x1, sp, #12
	mov	x0, x20
	bl	_hx509_cert_get_serialnumber
	cbnz	w0, LBB0_8
; %bb.3:
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_der_print_hex_heim_integer
	cbnz	w0, LBB0_8
; %bb.4:
	add	x0, sp, #12
	bl	_der_free_heim_integer
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x0, [sp, #16]
	bl	_free
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x20
	bl	_hx509_cert_keyusage_print
	cbz	w0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x0, l_.str.5@PAGE
Lloh12:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w1, #2
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	b	LBB0_7
LBB0_6:
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x0, [sp, #16]
	bl	_free
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,8,3                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"    issuer:  \"%s\"\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"    serial: %s\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"%s\n"

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

.subsections_via_symbols
