	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bl_down_read
_bl_down_read:                          ## @bl_down_read
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	___check_holder
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	___available_for_read
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	incl	8(%rbx)
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___add_holder
LBB0_1:
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_5:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_current@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_get_task_struct
	movl	(%r12), %eax
	movl	%eax, -40(%rbp)
	movq	$0, -48(%rbp)
	leaq	4(%rbx), %rsi
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	callq	___wait
	movl	(%r12), %edi
	callq	_put_task_struct
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.no_dead_strip	_bl_down_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bl_down_read
_bl_down_read:                          ; @bl_down_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
	bl	_spin_lock
	mov	x0, x20
	bl	___check_holder
	mov	x19, x0
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	___available_for_read
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	___add_holder
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock
LBB0_4:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_5:
Lloh3:
	adrp	x21, _current@GOTPAGE
Lloh4:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_get_task_struct
	ldr	w8, [x21]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	add	x1, x20, #4
	add	x0, sp, #8
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock
	add	x0, sp, #8
	bl	___wait
	ldr	w0, [x21]
	bl	_put_task_struct
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.no_dead_strip	_bl_down_read
.subsections_via_symbols
