	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fold_builtin_sprintf_chk
_fold_builtin_sprintf_chk:              ## @fold_builtin_sprintf_chk
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_TREE_VALUE
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_POINTER_TYPE_P
	testq	%rax, %rax
	je	LBB0_35
## %bb.2:
	movq	%rbx, %rdi
	callq	_TREE_CHAIN
	testq	%rax, %rax
	je	LBB0_35
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TREE_VALUE
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_TREE_CODE
	movq	_INTEGER_TYPE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_35
## %bb.4:
	movq	%rbx, %rdi
	callq	_TREE_CHAIN
	testq	%rax, %rax
	je	LBB0_35
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TREE_VALUE
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_TREE_CODE
	cmpq	(%r13), %rax
	jne	LBB0_35
## %bb.6:
	movq	%rbx, %rdi
	callq	_TREE_CHAIN
	testq	%rax, %rax
	je	LBB0_35
## %bb.7:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TREE_VALUE
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_POINTER_TYPE_P
	testq	%rax, %rax
	je	LBB0_35
## %bb.8:
	movq	%rbx, %rdi
	callq	_TREE_CHAIN
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_host_integerp
	testl	%eax, %eax
	je	LBB0_35
## %bb.9:
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_init_target_chars
	testl	%eax, %eax
	je	LBB0_35
## %bb.10:
	movq	%r13, %rdi
	callq	_c_getstr
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_24
## %bb.11:
	movq	_target_percent@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strchr
	movq	_BUILT_IN_SPRINTF_CHK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_12
## %bb.15:
	cmpl	%r14d, %ecx
	jne	LBB0_24
## %bb.16:
	movq	_target_percent_s@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_24
## %bb.17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.18:
	callq	_TREE_CHAIN
	testq	%rax, %rax
	jne	LBB0_24
## %bb.19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_TREE_VALUE
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_POINTER_TYPE_P
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_c_strlen
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_host_integerp
	testl	%eax, %eax
	jne	LBB0_24
LBB0_22:
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_23
LBB0_12:
	cmpl	%r14d, %ecx
	jne	LBB0_14
## %bb.13:
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	jne	LBB0_24
LBB0_14:
	movq	_size_type_node@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_strlen
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_build_int_cstu
LBB0_23:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_24:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_integer_all_onesp
	testl	%eax, %eax
	je	LBB0_25
LBB0_27:
	movq	%r15, %rdi
	callq	_integer_zerop
	testl	%eax, %eax
	je	LBB0_28
LBB0_31:
	movq	_NULL_TREE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_tree_cons
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_tree_cons
	movq	_built_in_decls@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_BUILT_IN_VSPRINTF_CHK@GOTPCREL(%rip), %rdx
	cmpl	%r14d, (%rdx)
	jne	LBB0_32
## %bb.33:
	movq	_BUILT_IN_VSPRINTF@GOTPCREL(%rip), %rdx
	jmp	LBB0_34
LBB0_25:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_35
## %bb.26:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_tree_int_cst_lt
	testl	%eax, %eax
	jne	LBB0_27
	jmp	LBB0_35
LBB0_32:
	movq	_BUILT_IN_SPRINTF@GOTPCREL(%rip), %rdx
LBB0_34:
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.36:
	movq	%rax, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_build_function_call_expr       ## TAILCALL
LBB0_28:
	testq	%rbx, %rbx
	je	LBB0_35
## %bb.29:
	movq	_target_percent@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	_target_percent_s@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_31
LBB0_35:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEGER_TYPE,8,3               ## @INTEGER_TYPE
	.comm	_NULL_TREE,8,3                  ## @NULL_TREE
	.comm	_target_percent,4,2             ## @target_percent
	.comm	_BUILT_IN_SPRINTF_CHK,4,2       ## @BUILT_IN_SPRINTF_CHK
	.comm	_size_type_node,4,2             ## @size_type_node
	.comm	_target_percent_s,4,2           ## @target_percent_s
	.comm	_built_in_decls,8,3             ## @built_in_decls
	.comm	_BUILT_IN_VSPRINTF_CHK,4,2      ## @BUILT_IN_VSPRINTF_CHK
	.comm	_BUILT_IN_VSPRINTF,8,3          ## @BUILT_IN_VSPRINTF
	.comm	_BUILT_IN_SPRINTF,8,3           ## @BUILT_IN_SPRINTF
	.no_dead_strip	_fold_builtin_sprintf_chk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fold_builtin_sprintf_chk
_fold_builtin_sprintf_chk:              ; @fold_builtin_sprintf_chk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_32
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	bl	_TREE_VALUE
	mov	x20, x0
	bl	_TREE_TYPE
	bl	_POINTER_TYPE_P
	cbz	x0, LBB0_32
; %bb.2:
	mov	x0, x21
	bl	_TREE_CHAIN
	cbz	x0, LBB0_32
; %bb.3:
	mov	x22, x0
	bl	_TREE_VALUE
	mov	x21, x0
	bl	_TREE_TYPE
	bl	_TREE_CODE
Lloh0:
	adrp	x24, _INTEGER_TYPE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _INTEGER_TYPE@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_32
; %bb.4:
	mov	x0, x22
	bl	_TREE_CHAIN
	cbz	x0, LBB0_32
; %bb.5:
	mov	x22, x0
	bl	_TREE_VALUE
	mov	x23, x0
	bl	_TREE_TYPE
	bl	_TREE_CODE
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_32
; %bb.6:
	mov	x0, x22
	bl	_TREE_CHAIN
	cbz	x0, LBB0_32
; %bb.7:
	mov	x24, x0
	bl	_TREE_VALUE
	mov	x22, x0
	bl	_TREE_TYPE
	bl	_POINTER_TYPE_P
	cbz	x0, LBB0_32
; %bb.8:
	mov	x0, x24
	bl	_TREE_CHAIN
	mov	x24, x0
	mov	x0, x23
	mov	w1, #1
	bl	_host_integerp
	cbz	w0, LBB0_32
; %bb.9:
Lloh2:
	adrp	x28, _NULL_TREE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _NULL_TREE@GOTPAGEOFF]
	ldr	x26, [x28]
	bl	_init_target_chars
	cbz	w0, LBB0_32
; %bb.10:
	mov	x0, x22
	bl	_c_getstr
	mov	x25, x0
	cbz	x0, LBB0_23
; %bb.11:
Lloh4:
	adrp	x8, _target_percent@GOTPAGE
Lloh5:
	ldr	x8, [x8, _target_percent@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_strchr
Lloh7:
	adrp	x8, _BUILT_IN_SPRINTF_CHK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BUILT_IN_SPRINTF_CHK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w19
	cbz	x0, LBB0_20
; %bb.12:
	b.ne	LBB0_23
; %bb.13:
Lloh10:
	adrp	x8, _target_percent_s@GOTPAGE
Lloh11:
	ldr	x8, [x8, _target_percent_s@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_strcmp
	cbnz	x0, LBB0_23
; %bb.14:
	cbz	x24, LBB0_23
; %bb.15:
	mov	x0, x24
	bl	_TREE_CHAIN
	cbnz	x0, LBB0_23
; %bb.16:
	mov	x0, x24
	bl	_TREE_VALUE
	mov	x27, x0
	bl	_TREE_TYPE
	bl	_POINTER_TYPE_P
	cbz	x0, LBB0_23
; %bb.17:
	mov	x0, x27
	mov	w1, #1
	bl	_c_strlen
	cbz	x0, LBB0_19
; %bb.18:
	mov	x26, x0
	mov	w1, #1
	bl	_host_integerp
	cbnz	w0, LBB0_23
LBB0_19:
	ldr	x26, [x28]
	b	LBB0_23
LBB0_20:
	b.ne	LBB0_22
; %bb.21:
	ldr	x8, [x28]
	cmp	x24, x8
	b.ne	LBB0_23
LBB0_22:
Lloh13:
	adrp	x8, _size_type_node@GOTPAGE
Lloh14:
	ldr	x8, [x8, _size_type_node@GOTPAGEOFF]
Lloh15:
	ldr	w26, [x8]
	mov	x0, x25
	bl	_strlen
	mov	x1, x0
	mov	x0, x26
	bl	_build_int_cstu
	mov	x26, x0
LBB0_23:
	mov	x0, x23
	bl	_integer_all_onesp
	cbz	w0, LBB0_27
LBB0_24:
	mov	x0, x21
	bl	_integer_zerop
	cbz	w0, LBB0_29
LBB0_25:
	ldr	x0, [x28]
	mov	x1, x22
	mov	x2, x24
	bl	_tree_cons
	mov	x2, x0
	ldr	x0, [x28]
	mov	x1, x20
	bl	_tree_cons
	mov	x1, x0
Lloh16:
	adrp	x8, _built_in_decls@GOTPAGE
Lloh17:
	ldr	x8, [x8, _built_in_decls@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _BUILT_IN_VSPRINTF_CHK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BUILT_IN_VSPRINTF_CHK@GOTPAGEOFF]
Lloh21:
	adrp	x10, _BUILT_IN_VSPRINTF@GOTPAGE
Lloh22:
	ldr	x10, [x10, _BUILT_IN_VSPRINTF@GOTPAGEOFF]
Lloh23:
	adrp	x11, _BUILT_IN_SPRINTF@GOTPAGE
Lloh24:
	ldr	x11, [x11, _BUILT_IN_SPRINTF@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w9, w19
	csel	x9, x10, x11, eq
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_32
; %bb.26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_build_function_call_expr
LBB0_27:
	cbz	x26, LBB0_32
; %bb.28:
	mov	x0, x26
	mov	x1, x23
	bl	_tree_int_cst_lt
	cbnz	w0, LBB0_24
	b	LBB0_32
LBB0_29:
	cbz	x25, LBB0_32
; %bb.30:
Lloh26:
	adrp	x8, _target_percent@GOTPAGE
Lloh27:
	ldr	x8, [x8, _target_percent@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_strchr
	cbz	x0, LBB0_25
; %bb.31:
Lloh29:
	adrp	x8, _target_percent_s@GOTPAGE
Lloh30:
	ldr	x8, [x8, _target_percent_s@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_strcmp
	cbz	x0, LBB0_25
LBB0_32:
	mov	x0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh25
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEGER_TYPE,8,3               ; @INTEGER_TYPE
	.comm	_NULL_TREE,8,3                  ; @NULL_TREE
	.comm	_target_percent,4,2             ; @target_percent
	.comm	_BUILT_IN_SPRINTF_CHK,4,2       ; @BUILT_IN_SPRINTF_CHK
	.comm	_size_type_node,4,2             ; @size_type_node
	.comm	_target_percent_s,4,2           ; @target_percent_s
	.comm	_built_in_decls,8,3             ; @built_in_decls
	.comm	_BUILT_IN_VSPRINTF_CHK,4,2      ; @BUILT_IN_VSPRINTF_CHK
	.comm	_BUILT_IN_VSPRINTF,8,3          ; @BUILT_IN_VSPRINTF
	.comm	_BUILT_IN_SPRINTF,8,3           ; @BUILT_IN_SPRINTF
	.no_dead_strip	_fold_builtin_sprintf_chk
.subsections_via_symbols
