	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_request
_ds_request:                            ## @ds_request
	.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	%ebx, %ebx
	movq	_ds_cfg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edx, %r15d
	movq	(%rax,%r15,8), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	%r9, %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	testq	%r9, %r9
	je	LBB0_5
## %bb.2:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_DS_ALIGNMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_IS_ALIGNED
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_DS_ALIGNMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rbp), %rdi
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	addq	%r14, %rax
	subl	(%rcx), %ebx
	cmpq	%rdi, %rax
	ja	LBB0_12
## %bb.8:
	movq	24(%rbp), %rax
	cmpq	$-1, %rax
	je	LBB0_10
## %bb.9:
	movq	_ds_cfg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	imulq	(%rcx,%r15,8), %rax
	cmpq	%rdi, %rax
	jae	LBB0_12
LBB0_10:
	movq	%r13, 16(%rdx)
	movq	%rdi, (%rdx)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_ds_get_context
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, 8(%rcx)
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ds_cfg,8,3                     ## @ds_cfg
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DS_ALIGNMENT,8,3               ## @DS_ALIGNMENT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ds_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_request
_ds_request:                            ; @ds_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x26, _ds_cfg@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ds_cfg@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x27, [x8, w2, uxtw #3]
	cbz	x27, LBB0_7
; %bb.1:
	mov	x23, x5
Lloh2:
	adrp	x28, _EINVAL@GOTPAGE
Lloh3:
	ldr	x28, [x28, _EINVAL@GOTPAGEOFF]
	cbz	x5, LBB0_8
; %bb.2:
	mov	x24, x7
	mov	x22, x6
	mov	x21, x3
	mov	x25, x2
	mov	x19, x0
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
Lloh4:
	adrp	x20, _DS_ALIGNMENT@GOTPAGE
Lloh5:
	ldr	x20, [x20, _DS_ALIGNMENT@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x23
	bl	_IS_ALIGNED
	ldr	x8, [x20]
	cmp	w0, #0
	csel	x8, x8, xzr, eq
	ldr	w9, [x28]
	neg	w0, w9
	add	x8, x8, x27
	cmp	x8, x22
	b.hi	LBB0_10
; %bb.3:
	cmn	x24, #1
	b.eq	LBB0_5
; %bb.4:
	mov	w8, w25
	ldr	x9, [x26]
	ldr	x8, [x9, x8, lsl #3]
	mul	x8, x8, x24
	cmp	x8, x22
	b.hs	LBB0_10
LBB0_5:
	str	x23, [x19, #16]
	str	x22, [x19]
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x21
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_ds_get_context
	cbz	x0, LBB0_11
; %bb.6:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
	b	LBB0_10
LBB0_7:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	b	LBB0_9
LBB0_8:
	ldr	w8, [x28]
LBB0_9:
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	neg	w0, w22
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ds_cfg,8,3                     ; @ds_cfg
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DS_ALIGNMENT,8,3               ; @DS_ALIGNMENT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ds_request
.subsections_via_symbols
