	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_serial_gets       ## -- Begin function mbedtls_x509_serial_gets
	.p2align	4, 0x90
_mbedtls_x509_serial_gets:              ## @mbedtls_x509_serial_gets
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %eax
	cmpl	$33, %eax
	movl	$28, %r13d
	cmovll	%eax, %r13d
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.1:
	movq	%rdx, %rbx
	movslq	%r13d, %rax
	leaq	-1(%rax), %r12
	cmpq	$2, %rax
	movl	$1, %r14d
	cmovaeq	%rax, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax,%r15,4), %ecx
	cmpq	%r12, %r15
	leaq	L_.str.2(%rip), %r8
	leaq	L_.str.1(%rip), %rax
	cmovbq	%rax, %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_mbedtls_snprintf
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	%r15, %r14
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	testq	%r15, %r15
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %r13d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%rax)
	jne	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movl	(%rbx), %eax
LBB0_8:
	cmpl	%eax, %r13d
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mbedtls_snprintf
LBB0_10:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02X%s"

L_.str.1:                               ## @.str.1
	.asciz	":"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_MBEDTLS_X509_SAFE_SNPRINTF,4,2 ## @MBEDTLS_X509_SAFE_SNPRINTF
L_.str.3:                               ## @.str.3
	.asciz	"...."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_serial_gets       ; -- Begin function mbedtls_x509_serial_gets
	.p2align	2
_mbedtls_x509_serial_gets:              ; @mbedtls_x509_serial_gets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
	ldr	w8, [x2]
	mov	w9, #28
	cmp	w8, #33
	csel	w23, w8, w9, lt
	cbz	w23, LBB0_8
; %bb.1:
	mov	x21, x2
	mov	x24, #0
	sxtw	x8, w23
	subs	x25, x8, #1
	csinc	x26, x8, xzr, hi
Lloh0:
	adrp	x27, l_.str.2@PAGE
Lloh1:
	add	x27, x27, l_.str.2@PAGEOFF
Lloh2:
	adrp	x28, l_.str.1@PAGE
Lloh3:
	add	x28, x28, l_.str.1@PAGEOFF
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x24, x25
	csel	x9, x28, x27, lo
	ldr	w8, [x8, x24, lsl #2]
	stp	x8, x9, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_mbedtls_snprintf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x26, x24
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	cbnz	x24, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #1
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8]
	cbnz	w9, LBB0_2
	b	LBB0_3
LBB0_7:
	ldr	w8, [x21]
LBB0_8:
	cmp	w23, w8
	b.eq	LBB0_10
; %bb.9:
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_snprintf
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02X%s"

l_.str.1:                               ; @.str.1
	.asciz	":"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_MBEDTLS_X509_SAFE_SNPRINTF,4,2 ; @MBEDTLS_X509_SAFE_SNPRINTF
l_.str.3:                               ; @.str.3
	.asciz	"...."

.subsections_via_symbols
