	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_trailing_nul
_check_trailing_nul:                    ## @check_trailing_nul
	.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
	leaq	l___const.check_trailing_nul.foo+32(%rip), %r13
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	leaq	-56(%rbp), %r15
	leaq	L_.str.9(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	addq	$40, %r13
	cmpq	$8, %rbx
	je	LBB0_12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-24(%r13), %rdi
	movq	-16(%r13), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_der_get_general_string
	cmpq	$1, %rbx
	ja	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	leaq	L_.str.8(%rip), %rsi
	movl	%ebx, %edx
	callq	_errx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_errx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	cmpq	-56(%rbp), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	leaq	L_.str.10(%rip), %rsi
	movl	%ebx, %edx
	callq	_errx
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-8(%r13), %rdi
	movq	-48(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	leaq	L_.str.11(%rip), %rsi
	movl	%ebx, %edx
	callq	_errx
	jmp	LBB0_10
LBB0_12:
	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,__const
l_.str:                                 ## @.str
	.asciz	"foo\000o"

l_.str.1:                               ## @.str.1
	.asciz	"\000o"

l_.str.2:                               ## @.str.2
	.space	6

	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.space	1

	.section	__TEXT,__const
l_.str.4:                               ## @.str.4
	.space	2

l_.str.5:                               ## @.str.5
	.asciz	"foo\000\000"

	.section	__TEXT,__cstring,cstring_literals
L_.str.6:                               ## @.str.6
	.asciz	"foo"

	.section	__TEXT,__const
l_.str.7:                               ## @.str.7
	.asciz	"foo\000"

	.section	__DATA,__const
	.p2align	4                               ## @__const.check_trailing_nul.foo
l___const.check_trailing_nul.foo:
	.long	1                               ## 0x1
	.space	4
	.quad	l_.str
	.quad	5                               ## 0x5
	.quad	0
	.quad	0                               ## 0x0
	.long	1                               ## 0x1
	.space	4
	.quad	l_.str.1
	.quad	2                               ## 0x2
	.quad	0
	.quad	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4
	.quad	l_.str.2
	.quad	5                               ## 0x5
	.quad	L_.str.3
	.quad	5                               ## 0x5
	.long	0                               ## 0x0
	.space	4
	.quad	l_.str.4
	.quad	1                               ## 0x1
	.quad	L_.str.3
	.quad	1                               ## 0x1
	.long	0                               ## 0x0
	.space	4
	.quad	L_.str.3
	.quad	0                               ## 0x0
	.quad	L_.str.3
	.quad	0                               ## 0x0
	.long	0                               ## 0x0
	.space	4
	.quad	l_.str.5
	.quad	5                               ## 0x5
	.quad	L_.str.6
	.quad	5                               ## 0x5
	.long	0                               ## 0x0
	.space	4
	.quad	l_.str.7
	.quad	4                               ## 0x4
	.quad	L_.str.6
	.quad	4                               ## 0x4
	.long	0                               ## 0x0
	.space	4
	.quad	L_.str.6
	.quad	3                               ## 0x3
	.quad	L_.str.6
	.quad	3                               ## 0x3

	.section	__TEXT,__cstring,cstring_literals
L_.str.8:                               ## @.str.8
	.asciz	"check %d NULL didn't fail"

L_.str.9:                               ## @.str.9
	.asciz	"NULL check %d der_get_general_string failed"

L_.str.10:                              ## @.str.10
	.asciz	"NUL check i = %d size failed"

L_.str.11:                              ## @.str.11
	.asciz	"NUL check i = %d content failed"

	.no_dead_strip	_check_trailing_nul
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_trailing_nul
_check_trailing_nul:                    ; @check_trailing_nul
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, #0
Lloh0:
	adrp	x24, l___const.check_trailing_nul.foo@PAGE+32
Lloh1:
	add	x24, x24, l___const.check_trailing_nul.foo@PAGEOFF+32
Lloh2:
	adrp	x20, l_.str.8@PAGE
Lloh3:
	add	x20, x20, l_.str.8@PAGEOFF
Lloh4:
	adrp	x21, l_.str.11@PAGE
Lloh5:
	add	x21, x21, l_.str.11@PAGEOFF
Lloh6:
	adrp	x22, l_.str.10@PAGE
Lloh7:
	add	x22, x22, l_.str.10@PAGEOFF
Lloh8:
	adrp	x23, l_.str.9@PAGE
Lloh9:
	add	x23, x23, l_.str.9@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #8]
	bl	_free
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	add	x24, x24, #40
	cmp	x19, #8
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x0, x1, [x24, #-24]
	add	x2, sp, #8
	mov	x3, sp
	bl	_der_get_general_string
	cmp	x19, #1
	b.hi	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	x1, x20
	mov	x2, x19
	bl	_errx
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	x1, x23
	mov	x2, x19
	bl	_errx
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	x9, [sp]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	x1, x22
	mov	x2, x19
	bl	_errx
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x0, [x24, #-8]
	ldr	x1, [sp, #8]
	bl	_strcmp
	cbz	x0, LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	x1, x21
	mov	x2, x19
	bl	_errx
	b	LBB0_1
LBB0_12:
	mov	w0, #0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.asciz	"foo\000o"

l_.str.1:                               ; @.str.1
	.asciz	"\000o"

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

	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.space	1

	.section	__TEXT,__const
l_.str.4:                               ; @.str.4
	.space	2

l_.str.5:                               ; @.str.5
	.asciz	"foo\000\000"

	.section	__TEXT,__cstring,cstring_literals
l_.str.6:                               ; @.str.6
	.asciz	"foo"

	.section	__TEXT,__const
l_.str.7:                               ; @.str.7
	.asciz	"foo\000"

	.section	__DATA,__const
	.p2align	3                               ; @__const.check_trailing_nul.foo
l___const.check_trailing_nul.foo:
	.long	1                               ; 0x1
	.space	4
	.quad	l_.str
	.quad	5                               ; 0x5
	.quad	0
	.quad	0                               ; 0x0
	.long	1                               ; 0x1
	.space	4
	.quad	l_.str.1
	.quad	2                               ; 0x2
	.quad	0
	.quad	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4
	.quad	l_.str.2
	.quad	5                               ; 0x5
	.quad	l_.str.3
	.quad	5                               ; 0x5
	.long	0                               ; 0x0
	.space	4
	.quad	l_.str.4
	.quad	1                               ; 0x1
	.quad	l_.str.3
	.quad	1                               ; 0x1
	.long	0                               ; 0x0
	.space	4
	.quad	l_.str.3
	.quad	0                               ; 0x0
	.quad	l_.str.3
	.quad	0                               ; 0x0
	.long	0                               ; 0x0
	.space	4
	.quad	l_.str.5
	.quad	5                               ; 0x5
	.quad	l_.str.6
	.quad	5                               ; 0x5
	.long	0                               ; 0x0
	.space	4
	.quad	l_.str.7
	.quad	4                               ; 0x4
	.quad	l_.str.6
	.quad	4                               ; 0x4
	.long	0                               ; 0x0
	.space	4
	.quad	l_.str.6
	.quad	3                               ; 0x3
	.quad	l_.str.6
	.quad	3                               ; 0x3

	.section	__TEXT,__cstring,cstring_literals
l_.str.8:                               ; @.str.8
	.asciz	"check %d NULL didn't fail"

l_.str.9:                               ; @.str.9
	.asciz	"NULL check %d der_get_general_string failed"

l_.str.10:                              ; @.str.10
	.asciz	"NUL check i = %d size failed"

l_.str.11:                              ; @.str.11
	.asciz	"NUL check i = %d content failed"

	.no_dead_strip	_check_trailing_nul
.subsections_via_symbols
