	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_fop_poll                   ## -- Begin function vb2_fop_poll
	.p2align	4, 0x90
_vb2_fop_poll:                          ## @vb2_fop_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_video_devdata
	movq	%rax, %r12
	movq	(%rax), %r13
	movq	16(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	callq	_WARN_ON
	jmp	LBB0_2
LBB0_4:
	movq	8(%r12), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_3
## %bb.12:
	movq	_EPOLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_6:
	movq	(%r12), %rdi
	movq	8(%r13), %r12
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_vb2_poll
	movl	%eax, %r15d
	testq	%r12, %r12
	jne	LBB0_9
## %bb.7:
	cmpq	$0, 8(%r13)
	je	LBB0_9
## %bb.8:
	movl	(%r14), %eax
	movl	%eax, (%r13)
LBB0_9:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_fop_poll                   ; -- Begin function vb2_fop_poll
	.p2align	2
_vb2_fop_poll:                          ; @vb2_fop_poll
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	bl	_video_devdata
	mov	x22, x0
	ldr	x23, [x0]
	ldr	x20, [x23, #16]
	cbz	x20, LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_WARN_ON
	b	LBB0_3
LBB0_2:
	ldr	x20, [x22, #8]
	cmp	x20, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x20, LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _EPOLLERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPOLLERR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_12
LBB0_5:
	mov	w24, #0
	b	LBB0_7
LBB0_6:
	mov	w24, #1
LBB0_7:
	ldr	x25, [x23, #8]
	ldr	x0, [x22]
	mov	x1, x19
	mov	x2, x21
	bl	_vb2_poll
	mov	x21, x0
	cbnz	x25, LBB0_10
; %bb.8:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w8, [x19]
	str	w8, [x23]
LBB0_10:
	tbnz	w24, #0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
.subsections_via_symbols
