	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_subregion                   ## -- Begin function bs_subregion
	.p2align	4, 0x90
_bs_subregion:                          ## @bs_subregion
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %ebx
	callq	_rid_lookup
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	testq	%r12, %r12
	js	LBB0_3
## %bb.2:
	testq	%r14, %r14
	jle	LBB0_3
## %bb.5:
	leaq	(%r14,%r12), %rcx
	cmpq	(%rax), %rcx
	jle	LBB0_7
## %bb.6:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_10:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	8(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movdqu	16(%rax), %xmm0
	movdqa	%xmm0, -80(%rbp)                ## 16-byte Spill
	movq	40(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_rid_alloc
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_rid_lookup
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	%ebx, 32(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rax)
	movq	%r12, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	movdqa	-80(%rbp), %xmm1                ## 16-byte Reload
	paddq	%xmm0, %xmm1
	movq	%r14, (%rax)
	movdqu	%xmm1, 16(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 40(%rax)
	movl	%r13d, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOSPC,4,2                     ## @ENOSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_subregion                   ; -- Begin function bs_subregion
	.p2align	2
_bs_subregion:                          ; @bs_subregion
	.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, x2
	mov	x20, x1
	mov	x22, x0
	bl	_rid_lookup
	cbz	x0, LBB0_7
; %bb.1:
	tbnz	x20, #63, LBB0_5
; %bb.2:
	cmp	x19, #0
	b.le	LBB0_5
; %bb.3:
	ldr	x8, [x0]
	add	x9, x19, x20
	cmp	x9, x8
	b.le	LBB0_9
; %bb.4:
Lloh0:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _errno@GOTPAGE
Lloh5:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh6:
	str	w8, [x9]
LBB0_7:
	mov	w21, #-1
LBB0_8:
	mov	x0, x21
	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_9:
	ldr	w24, [x0, #8]
	ldr	q0, [x0, #16]
	str	q0, [sp]                        ; 16-byte Folded Spill
	ldr	x23, [x0, #40]
	bl	_rid_alloc
	mov	x21, x0
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.10:
	mov	x0, x21
	bl	_rid_lookup
	cbz	x0, LBB0_7
; %bb.11:
	str	w22, [x0, #32]
	str	w24, [x0, #8]
	dup.2d	v0, x20
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	add.2d	v0, v1, v0
	str	x19, [x0]
	str	q0, [x0, #16]
	str	x23, [x0, #40]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOSPC,4,2                     ; @ENOSPC
.subsections_via_symbols
