	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bl_down_write
_bl_down_write:                         ## @bl_down_write
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	___check_holder
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movq	%r15, %rdi
	callq	_spin_unlock
	jmp	LBB0_6
LBB0_2:
	cmpl	$0, (%rbx)
	je	LBB0_3
LBB0_5:
	movq	_current@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_get_task_struct
	movl	(%r12), %eax
	movl	%eax, -40(%rbp)
	movl	$1, -48(%rbp)
	leaq	-44(%rbp), %rdi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_list_add
	movq	%r15, %rdi
	callq	_spin_unlock
	leaq	-48(%rbp), %rdi
	callq	___wait
	movl	(%r12), %edi
	callq	_put_task_struct
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	8(%rbx), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$-1, (%rbx)
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___add_holder
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.no_dead_strip	_bl_down_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bl_down_write
_bl_down_write:                         ; @bl_down_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x21
	bl	___check_holder
	mov	x19, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	bl	_spin_unlock
	b	LBB0_4
LBB0_2:
	ldr	w8, [x21]
	cbz	w8, LBB0_5
LBB0_3:
Lloh0:
	adrp	x22, _current@GOTPAGE
Lloh1:
	ldr	x22, [x22, _current@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_get_task_struct
	ldr	w8, [x22]
	mov	w9, #1
	str	w8, [sp, #8]
	str	w9, [sp]
	mov	x8, sp
	orr	x0, x8, #0x4
	add	x1, x21, #8
	bl	_list_add
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, sp
	bl	___wait
	ldr	w0, [x22]
	bl	_put_task_struct
LBB0_4:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_5:
	add	x0, x21, #8
	bl	_list_empty
	cbz	x0, LBB0_3
; %bb.6:
	mov	w8, #-1
	str	w8, [x21]
Lloh2:
	adrp	x8, _current@GOTPAGE
Lloh3:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	___add_holder
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.no_dead_strip	_bl_down_write
.subsections_via_symbols
