	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_buf_poll
_dma_buf_poll:                          ## @dma_buf_poll
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	24(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movq	%rsi, %r14
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_poll_wait
	movq	%r14, %rdi
	callq	_poll_requested_events
	movq	_EPOLLIN@GOTPCREL(%rip), %rdx
	movq	_EPOLLOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	andl	%eax, %ecx
	je	LBB0_4
## %bb.5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_read_seqcount_begin
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	8(%rbx), %edi
	callq	_rcu_dereference
	movq	%rax, %r12
	movl	$0, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %r15d
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rbx), %edi
	callq	_rcu_dereference
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_read_seqcount_retry
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_6
LBB0_2:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_41
LBB0_10:
	testq	%r13, %r13
	je	LBB0_11
## %bb.12:
	movq	_EPOLLOUT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %eax
	je	LBB0_14
## %bb.13:
	testl	%r15d, %r15d
	jne	LBB0_24
LBB0_14:
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	cmovel	%eax, %r14d
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_irq
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	12(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	orl	%r14d, %eax
	movl	%eax, 12(%rdi)
	movl	%r14d, %eax
	notl	%eax
	andl	%eax, %ebx
	jmp	LBB0_17
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_41
LBB0_11:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_18
LBB0_16:
	movl	%r14d, 12(%rdi)
LBB0_17:
	callq	_spin_unlock_irq
	testl	%r14d, %ebx
	je	LBB0_18
## %bb.19:
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	callq	_dma_fence_get_rcu
	testl	%eax, %eax
	movq	_EPOLLOUT@GOTPCREL(%rip), %r14
	je	LBB0_20
## %bb.21:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rbx
	movq	_dma_buf_poll_cb@GOTPCREL(%rip), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_dma_fence_add_callback
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	movq	%r13, %rdi
	callq	_dma_fence_put
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_dma_buf_poll_cb
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_24
LBB0_18:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	_EPOLLOUT@GOTPCREL(%rip), %r14
	jmp	LBB0_25
LBB0_20:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	andl	%eax, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	leaq	16(%r13), %rsi
	xorl	%edi, %edi
	callq	_dma_buf_poll_cb
	jmp	LBB0_25
LBB0_22:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	andl	%eax, %ebx
	movq	%r13, %rdi
	callq	_dma_fence_put
LBB0_24:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_25:
	testl	%ebx, (%r14)
	je	LBB0_40
## %bb.26:
	testl	%r15d, %r15d
	je	LBB0_40
## %bb.27:
	movq	%r13, %rdi
	callq	_spin_lock_irq
	cmpl	$0, 4(%r13)
	movl	(%r14), %eax
	je	LBB0_29
## %bb.28:
	notl	%eax
	andl	%eax, %ebx
	jmp	LBB0_30
LBB0_29:
	movl	%eax, 4(%r13)
LBB0_30:
	movq	%r13, %rdi
	callq	_spin_unlock_irq
	testl	%ebx, (%r14)
	je	LBB0_40
## %bb.31:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %r14d
	addq	$8, %r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_rcu_dereference
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_dma_fence_get_rcu
	testl	%eax, %eax
	je	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	_dma_buf_poll_cb@GOTPCREL(%rip), %rdx
	callq	_dma_fence_add_callback
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_32 Depth=1
	callq	_dma_fence_put
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_32
## %bb.37:
	movl	%r14d, %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_38
LBB0_33:
	movq	_EPOLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	andl	%eax, %ebx
	xorl	%edi, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_dma_buf_poll_cb
	jmp	LBB0_38
LBB0_35:
	callq	_dma_fence_put
	movq	_EPOLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	andl	%eax, %ebx
LBB0_38:
	cmpl	%r15d, %r13d
	jne	LBB0_40
## %bb.39:
	xorl	%edi, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_dma_buf_poll_cb
LBB0_40:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_41:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLOUT,4,2                   ## @EPOLLOUT
	.no_dead_strip	_dma_buf_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_buf_poll
_dma_buf_poll:                          ; @dma_buf_poll
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x20, [x0]
	cbz	x20, LBB0_8
; %bb.1:
	ldr	x23, [x20, #24]
	cbz	x23, LBB0_8
; %bb.2:
	mov	x19, x1
	mov	x1, x20
	mov	x2, x19
	bl	_poll_wait
	mov	x0, x19
	bl	_poll_requested_events
Lloh0:
	adrp	x27, _EPOLLIN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EPOLLIN@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh2:
	adrp	x25, _EPOLLOUT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EPOLLOUT@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ands	w19, w8, w0
	b.eq	LBB0_36
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_read_seqcount_begin
	mov	x24, x0
	bl	_rcu_read_lock
	ldr	w0, [x23, #8]
	bl	_rcu_dereference
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w26, [x21]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #0
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23, #4]
	bl	_rcu_dereference
	mov	x22, x0
	mov	x0, x23
	mov	x1, x24
	bl	_read_seqcount_retry
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_rcu_read_unlock
	b	LBB0_3
LBB0_8:
Lloh4:
	adrp	x8, _EPOLLERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPOLLERR@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	b	LBB0_36
LBB0_9:
	cbz	x22, LBB0_21
; %bb.10:
	ldr	w8, [x25]
	and	w9, w8, w19
	cmp	w9, #0
	ccmp	w26, #0, #4, ne
	b.ne	LBB0_21
; %bb.11:
	ldr	w9, [x27]
	cmp	w26, #0
	csel	w8, w8, wzr, eq
	orr	w24, w9, w8
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_13
; %bb.12:
	orr	w8, w8, w24
	str	w8, [x20, #12]
	bic	w19, w19, w24
	b	LBB0_14
LBB0_13:
	str	w24, [x20, #12]
LBB0_14:
	mov	x0, x20
	bl	_spin_unlock_irq
	tst	w19, w24
	b.eq	LBB0_21
; %bb.15:
	mov	x0, x22
	bl	_dma_fence_get_rcu
	cbz	w0, LBB0_18
; %bb.16:
	add	x23, x20, #16
Lloh7:
	adrp	x2, _dma_buf_poll_cb@GOTPAGE
Lloh8:
	ldr	x2, [x2, _dma_buf_poll_cb@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x23
	bl	_dma_fence_add_callback
	cbz	w0, LBB0_20
; %bb.17:
	mov	x0, x22
	bl	_dma_fence_put
	mov	x0, #0
	mov	x1, x23
	b	LBB0_19
LBB0_18:
	bic	w19, w19, w24
	add	x1, x20, #16
	mov	x0, #0
LBB0_19:
	bl	_dma_buf_poll_cb
	b	LBB0_21
LBB0_20:
	bic	w19, w19, w24
	mov	x0, x22
	bl	_dma_fence_put
LBB0_21:
	ldr	w8, [x25]
	and	w8, w8, w19
	cmp	w8, #0
	ccmp	w26, #0, #4, ne
	b.eq	LBB0_35
; %bb.22:
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w9, [x20, #4]
	ldr	w8, [x25]
	cbz	w9, LBB0_24
; %bb.23:
	bic	w19, w19, w8
	b	LBB0_25
LBB0_24:
	str	w8, [x20, #4]
LBB0_25:
	mov	x0, x20
	bl	_spin_unlock_irq
	ldr	w8, [x25]
	tst	w8, w19
	b.eq	LBB0_35
; %bb.26:
	mov	x24, #0
	add	x20, x20, #8
Lloh9:
	adrp	x22, _dma_buf_poll_cb@GOTPAGE
Lloh10:
	ldr	x22, [x22, _dma_buf_poll_cb@GOTPAGEOFF]
	mov	w27, w26
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x24, lsl #2]
	bl	_rcu_dereference
	mov	x23, x0
	bl	_dma_fence_get_rcu
	cbz	w0, LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	bl	_dma_fence_add_callback
	cbz	w0, LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x0, x23
	bl	_dma_fence_put
	add	x24, x24, #1
	cmp	x27, x24
	b.ne	LBB0_27
; %bb.30:
	mov	x24, x27
	b	LBB0_33
LBB0_31:
	ldr	w8, [x25]
	bic	w19, w19, w8
	mov	x0, #0
	mov	x1, x20
	bl	_dma_buf_poll_cb
	b	LBB0_33
LBB0_32:
	mov	x0, x23
	bl	_dma_fence_put
	ldr	w8, [x25]
	bic	w19, w19, w8
LBB0_33:
	cmp	w24, w26
	b.ne	LBB0_35
; %bb.34:
	mov	x0, #0
	mov	x1, x20
	bl	_dma_buf_poll_cb
LBB0_35:
	bl	_rcu_read_unlock
LBB0_36:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLOUT,4,2                   ; @EPOLLOUT
	.no_dead_strip	_dma_buf_poll
.subsections_via_symbols
