	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdl_get_hunk                   ## -- Begin function xdl_get_hunk
	.p2align	4, 0x90
_xdl_get_hunk:                          ## @xdl_get_hunk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	(%rdi), %r10
	testq	%r10, %r10
	je	LBB0_21
## %bb.1:
	movslq	(%rsi), %r9
	movslq	4(%rsi), %rax
	leaq	(%rax,%r9,2), %r8
	movq	%r10, %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, (%rdi)
	movq	%rcx, %r10
	movq	32(%rax), %rcx
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rax
	testq	%rcx, %rcx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rax)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rcx), %rdx
	movq	(%rax), %rsi
	addq	8(%rax), %rsi
	subq	%rsi, %rdx
	cmpq	%r9, %rdx
	jge	LBB0_2
	jmp	LBB0_3
LBB0_7:
	testq	%r10, %r10
	je	LBB0_21
## %bb.8:
	movq	32(%r10), %rdx
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.9:
	movq	(%r10), %r11
	xorl	%esi, %esi
	movq	%r10, %rcx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	16(%r10), %rsi
	movq	%rcx, %rax
	movq	%rsi, %rbx
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	32(%r10), %rdx
	movq	%rbx, %rsi
	movq	%rax, %rcx
	testq	%rdx, %rdx
	je	LBB0_25
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r10, %rdi
	movq	%rdx, %r10
	movq	%r11, %rdx
	movq	(%r10), %r11
	addq	8(%rdi), %rdx
	movq	%r11, %rax
	subq	%rdx, %rax
	cmpq	%r8, %rax
	jg	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%r9, %rax
	jge	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$0, 24(%r10)
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r10, %rax
	movl	$0, %ebx
	cmpq	%rdi, %rcx
	jne	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%rdi, %rcx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rcx), %rax
	leaq	(%r11,%rsi), %rdx
	addq	8(%rcx), %rax
	subq	%rax, %rdx
	cmpq	%r8, %rdx
	ja	LBB0_24
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$0, 24(%r10)
	jne	LBB0_10
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r10, %rax
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_21:
	xorl	%eax, %eax
LBB0_25:
	popq	%rbx
	popq	%rbp
	retq
LBB0_22:
	movq	%r10, %rax
	jmp	LBB0_25
LBB0_24:
	movq	%rcx, %rax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdl_get_hunk                   ; -- Begin function xdl_get_hunk
	.p2align	2
_xdl_get_hunk:                          ; @xdl_get_hunk
	.cfi_startproc
; %bb.0:
	ldr	x10, [x0]
	cbz	x10, LBB0_19
; %bb.1:
	ldpsw	x8, x9, [x1]
	add	x9, x9, x8, lsl #1
	mov	x11, x10
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x12, [x0]
	mov	x10, x12
	ldr	x12, [x11, #32]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, x12
	cbz	x12, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, #24]
	cbz	x12, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x11, #32]
	cbz	x12, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x12]
	ldp	x14, x15, [x11]
	add	x14, x14, x15
	sub	x13, x13, x14
	cmp	x13, x8
	b.ge	LBB0_2
	b	LBB0_3
LBB0_7:
	cbz	x10, LBB0_19
; %bb.8:
	ldr	x13, [x10, #32]
	cbz	x13, LBB0_20
; %bb.9:
	mov	x11, #0
	ldr	x12, [x10]
	mov	x0, x10
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x11, #0
	mov	x0, x10
	ldr	x13, [x10, #32]
	cbz	x13, LBB0_18
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x14, x10
	mov	x10, x13
	mov	x13, x12
	ldr	x12, [x10]
	ldr	x15, [x14, #8]
	add	x13, x13, x15
	sub	x13, x12, x13
	cmp	x13, x9
	b.gt	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x13, x8
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x13, [x10, #24]
	cmp	x13, #0
	ccmp	x0, x14, #4, ne
	b.ne	LBB0_17
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	x0, x14
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldp	x13, x14, [x0]
	add	x15, x12, x11
	add	x13, x13, x14
	sub	x13, x15, x13
	cmp	x13, x9
	b.hi	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x13, [x10, #24]
	cbz	x13, LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x13, [x10, #16]
	add	x11, x13, x11
	ldr	x13, [x10, #32]
	cbnz	x13, LBB0_11
LBB0_18:
	ret
LBB0_19:
	mov	x0, #0
	ret
LBB0_20:
	mov	x0, x10
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
