	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t4_sched_queue_bind
_t4_sched_queue_bind:                   ## @t4_sched_queue_bind
	.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
	movq	(%rsi), %rax
	cmpq	(%rdi), %rax
	jae	LBB0_1
## %bb.3:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	16(%rdi), %rbx
	movq	24(%rdi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movq	(%r15), %rcx
	addq	8(%r12), %rcx
	movl	(%rax,%rcx,4), %r13d
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_t4_sched_queue_unbind
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	%r13d, (%r14)
	leaq	8(%r14), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movq	8(%r14), %r13
	movq	_SCHED_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_t4_sched_bind_unbind_op
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_kvfree
	jmp	LBB0_9
LBB0_1:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	addq	$4, %r14
	leaq	(%r15,%r13,8), %rbx
	leaq	(%r15,%r13,8), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_atomic_inc
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SCHED_QUEUE,4,2                ## @SCHED_QUEUE
	.no_dead_strip	_t4_sched_queue_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t4_sched_queue_bind
_t4_sched_queue_bind:                   ; @t4_sched_queue_bind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x1]
	ldr	x9, [x0]
	cmp	x8, x9
	b.hs	LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldp	x23, x22, [x0, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kvzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x8, [x22]
	ldr	x9, [x19, #8]
	ldr	x10, [x21]
	add	x9, x10, x9
	ldr	w24, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_t4_sched_queue_unbind
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.3:
	str	w24, [x20]
	add	x0, x20, #8
	mov	x1, x21
	mov	w2, #8
	bl	_memcpy
	ldr	x21, [x23]
	ldr	x23, [x20, #8]
Lloh3:
	adrp	x8, _SCHED_QUEUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCHED_QUEUE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_t4_sched_bind_unbind_op
	mov	x22, x0
	cbz	w0, LBB0_9
LBB0_4:
	mov	x0, x20
	bl	_kvfree
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _ERANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	add	x0, x20, #4
	add	x19, x21, x23, lsl #3
	add	x1, x19, #4
	bl	_list_add_tail
	mov	x0, x19
	bl	_atomic_inc
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SCHED_QUEUE,4,2                ; @SCHED_QUEUE
	.no_dead_strip	_t4_sched_queue_bind
.subsections_via_symbols
