	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function briq_panel_open
_briq_panel_open:                       ## @briq_panel_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_lock_kernel
	movq	_vfd_is_open@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_unlock_kernel
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_unlock_kernel
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vfd_is_open,4,2                ## @vfd_is_open
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_briq_panel_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function briq_panel_open
_briq_panel_open:                       ; @briq_panel_open
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_lock_kernel
Lloh0:
	adrp	x8, _vfd_is_open@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vfd_is_open@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
	bl	_unlock_kernel
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w9, #1
	str	w9, [x8]
	bl	_unlock_kernel
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_vfd_is_open,4,2                ; @vfd_is_open
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_briq_panel_open
.subsections_via_symbols
