	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_discrim_bound
_scan_discrim_bound:                    ## @scan_discrim_bound
	.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
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.2:
	movq	%rdi, %r14
	movslq	%esi, %rbx
	cmpb	$0, (%rdi,%rbx)
	je	LBB0_9
## %bb.3:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	leaq	(%r14,%rbx), %r13
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movl	%r15d, %ebx
	subl	%r13d, %ebx
	leal	1(%rbx), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_GROW_VECT
	xorl	%edi, %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_strncpy
	subq	%r14, %r15
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_4:
	movq	%r13, %rdi
	callq	_strlen
	addq	%rbx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_6:
	movq	%r12, %rdi
	callq	_VALUE_TYPE
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_ada_search_struct_field
	testq	%rax, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
## %bb.7:
	movq	%rax, %rdi
	callq	_value_as_long
	movl	%eax, (%r14)
	movl	$1, %r15d
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%rbx)
LBB0_9:
	movl	%r15d, %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	"__"

	.no_dead_strip	_scan_discrim_bound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_discrim_bound
_scan_discrim_bound:                    ; @scan_discrim_bound
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x23, x0
	mov	w0, #0
	cbz	x23, LBB0_11
; %bb.1:
	mov	x21, x2
	cbz	x2, LBB0_11
; %bb.2:
	sxtw	x25, w1
	add	x22, x23, x25
	ldrb	w8, [x22]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x19, x4
	mov	x20, x3
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strstr
	cbz	x0, LBB0_6
; %bb.4:
	mov	x24, x0
	sub	w25, w24, w22
	add	w2, w25, #1
	mov	x0, #0
	mov	x1, #0
	bl	_GROW_VECT
	mov	x0, #0
	mov	x1, x22
	mov	x2, x25
	bl	_strncpy
	mov	x22, #0
	sub	x23, x24, x23
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	mov	x0, x22
	bl	_strlen
	add	x23, x0, x25
LBB0_7:
	mov	x0, x21
	bl	_VALUE_TYPE
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	bl	_ada_search_struct_field
	cbz	x0, LBB0_11
; %bb.8:
	bl	_value_as_long
	str	w0, [x20]
	cbz	x19, LBB0_10
; %bb.9:
	str	w23, [x19]
LBB0_10:
	mov	w0, #1
LBB0_11:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"__"

	.no_dead_strip	_scan_discrim_bound
.subsections_via_symbols
