	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p9_fd_request
_p9_fd_request:                         ## @p9_fd_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	_P9_DEBUG_TRANS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%rsi), %r8
	movl	(%r8), %r9d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_P9_DPRINTK
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	js	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_REQ_STATUS_UNSENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	leaq	20(%r15), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_Wpending@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r15), %r14
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	jmp	LBB0_4
LBB0_3:
	movl	16(%r15), %edi
	xorl	%esi, %esi
	callq	_p9_fd_poll
	movq	_POLLOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	xorl	%ebx, %ebx
	testl	%eax, %ecx
	je	LBB0_7
## %bb.5:
	movq	_Wworksched@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_schedule_work
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P9_DEBUG_TRANS,4,2             ## @P9_DEBUG_TRANS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mux %p task %p tcall %p id %d\n"

	.comm	_current,4,2                    ## @current
	.comm	_REQ_STATUS_UNSENT,4,2          ## @REQ_STATUS_UNSENT
	.comm	_Wpending,4,2                   ## @Wpending
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_Wworksched,4,2                 ## @Wworksched
	.no_dead_strip	_p9_fd_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p9_fd_request
_p9_fd_request:                         ; @p9_fd_request
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, _P9_DEBUG_TRANS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P9_DEBUG_TRANS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	ldr	x4, [x1, #8]
	ldr	w5, [x4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_P9_DPRINTK
	ldr	x0, [x19]
	tbnz	x0, #63, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_spin_lock
Lloh8:
	adrp	x8, _REQ_STATUS_UNSENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REQ_STATUS_UNSENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	add	x1, x19, #20
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock
Lloh11:
	adrp	x8, _Wpending@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Wpending@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x20, x19, #12
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.2:
Lloh14:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	x0, x8
	tst	w8, w0
	b.ne	LBB0_4
	b	LBB0_6
LBB0_3:
	ldr	w0, [x19, #16]
	mov	x1, #0
	bl	_p9_fd_poll
Lloh17:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
LBB0_4:
Lloh20:
	adrp	x8, _Wworksched@GOTPAGE
Lloh21:
	ldr	x8, [x8, _Wworksched@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_set_bit
	cbnz	w0, LBB0_6
; %bb.5:
	add	x0, x19, #8
	bl	_schedule_work
LBB0_6:
	mov	w0, #0
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_P9_DEBUG_TRANS,4,2             ; @P9_DEBUG_TRANS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mux %p task %p tcall %p id %d\n"

	.comm	_current,4,2                    ; @current
	.comm	_REQ_STATUS_UNSENT,4,2          ; @REQ_STATUS_UNSENT
	.comm	_Wpending,4,2                   ; @Wpending
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_Wworksched,4,2                 ; @Wworksched
	.no_dead_strip	_p9_fd_request
.subsections_via_symbols
