	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fold_builtin_strchr
_fold_builtin_strchr:                   ## @fold_builtin_strchr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_POINTER_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INTEGER_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VOID_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_validate_arglist
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%ebx, %edi
	callq	_TREE_VALUE
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_TREE_CHAIN
	movl	%eax, %edi
	callq	_TREE_VALUE
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TREE_CODE
	movq	_INTEGER_CST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movl	%r15d, %edi
	callq	_c_getstr
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r12
	leaq	-41(%rbp), %rsi
	movl	%ebx, %edi
	callq	_target_char_cast
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movsbl	-41(%rbp), %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	_PLUS_EXPR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_TREE_TYPE
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	_TREE_TYPE
	subl	%r12d, %ebx
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_build_int_cst
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_fold_build2
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_fold_convert
	jmp	LBB0_7
LBB0_5:
	movl	%r15d, %edi
	callq	_TREE_TYPE
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_build_int_cst
LBB0_7:
	movl	%eax, %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POINTER_TYPE,4,2               ## @POINTER_TYPE
	.comm	_INTEGER_TYPE,4,2               ## @INTEGER_TYPE
	.comm	_VOID_TYPE,4,2                  ## @VOID_TYPE
	.comm	_INTEGER_CST,8,3                ## @INTEGER_CST
	.comm	_PLUS_EXPR,4,2                  ## @PLUS_EXPR
	.no_dead_strip	_fold_builtin_strchr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fold_builtin_strchr
_fold_builtin_strchr:                   ; @fold_builtin_strchr
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _POINTER_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POINTER_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _INTEGER_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEGER_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _VOID_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VOID_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_validate_arglist
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_TREE_VALUE
	mov	x20, x0
	mov	x0, x21
	bl	_TREE_CHAIN
	bl	_TREE_VALUE
	mov	x22, x0
	bl	_TREE_CODE
Lloh9:
	adrp	x8, _INTEGER_CST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INTEGER_CST@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_c_getstr
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	add	x1, sp, #15
	mov	x0, x22
	bl	_target_char_cast
	cbz	x0, LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
LBB0_6:
	ldrsb	w1, [sp, #15]
	mov	x0, x21
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.7:
	mov	x22, x0
Lloh12:
	adrp	x8, _PLUS_EXPR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PLUS_EXPR@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_TREE_TYPE
	mov	x24, x0
	mov	x0, x20
	bl	_TREE_TYPE
	sub	w1, w22, w21
	bl	_build_int_cst
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x20
	bl	_fold_build2
	mov	x1, x0
	mov	x0, x19
	bl	_fold_convert
	b	LBB0_5
LBB0_8:
	mov	x0, x20
	bl	_TREE_TYPE
	mov	w1, #0
	bl	_build_int_cst
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_POINTER_TYPE,4,2               ; @POINTER_TYPE
	.comm	_INTEGER_TYPE,4,2               ; @INTEGER_TYPE
	.comm	_VOID_TYPE,4,2                  ; @VOID_TYPE
	.comm	_INTEGER_CST,8,3                ; @INTEGER_CST
	.comm	_PLUS_EXPR,4,2                  ; @PLUS_EXPR
	.no_dead_strip	_fold_builtin_strchr
.subsections_via_symbols
