	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdisp_queue_setup
_bdisp_queue_setup:                     ## @bdisp_queue_setup
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	callq	_vb2_get_drv_priv
	movq	%rax, %r12
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_ctx_get_frame
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	cmpl	$0, 4(%rbx)
	je	LBB0_2
## %bb.3:
	cmpl	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movl	(%r14), %eax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%r14d, %r14d
	subl	(%rcx), %r14d
	cmpl	(%rbx), %eax
	cmovael	%edx, %r14d
	jmp	LBB0_6
LBB0_2:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_5:
	movl	$1, (%r15)
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid frame (%p)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid format\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bdisp_queue_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdisp_queue_setup
_bdisp_queue_setup:                     ; @bdisp_queue_setup
	.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	x19, x3
	mov	x21, x2
	mov	x20, x0
	bl	_vb2_get_drv_priv
	mov	x22, x0
	ldr	w1, [x20]
	bl	_ctx_get_frame
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	w0, [x8]
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_2:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w8, [x19]
	ldr	w9, [x20]
Lloh2:
	adrp	x10, _EINVAL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w8, w9
	csneg	w0, wzr, w10, hs
	b	LBB0_7
LBB0_5:
	ldr	x8, [x22]
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x21]
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_7:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid frame (%p)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid format\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bdisp_queue_setup
.subsections_via_symbols
