	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_handle_frame               ## -- Begin function pwc_handle_frame
	.p2align	4, 0x90
_pwc_handle_frame:                      ## @pwc_handle_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_PWC_ERROR
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_2:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, 8(%rbx)
	movq	(%rax), %rcx
	movq	%rcx, 32(%rbx)
	movq	$0, (%rax)
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_PWC_ERROR
	cmpq	$0, 8(%rbx)
	je	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_pwc_decompress
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 24(%rbx)
	movq	8(%rbx), %rax
	je	LBB0_5
## %bb.8:
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_9
LBB0_5:
	movq	%rax, 24(%rbx)
LBB0_9:
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
LBB0_10:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Huh? Read frame still in use?\n"

L_.str.1:                               ## @.str.1
	.asciz	"Woops. No frames ready.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_handle_frame               ; -- Begin function pwc_handle_frame
	.p2align	2
_pwc_handle_frame:                      ; @pwc_handle_frame
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PWC_ERROR
	mov	w20, #0
	b	LBB0_9
LBB0_2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.3:
	str	x8, [x19, #8]
	ldr	x9, [x8]
	str	x9, [x19, #32]
	str	xzr, [x8]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_PWC_ERROR
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_pwc_decompress
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x9, [x19, #24]
	ldr	x8, [x19, #8]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	x9, [x19, #16]
	str	x8, [x9]
	b	LBB0_8
LBB0_7:
	str	x8, [x19, #24]
LBB0_8:
	stp	xzr, x8, [x19, #8]
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w20, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Huh? Read frame still in use?\n"

l_.str.1:                               ; @.str.1
	.asciz	"Woops. No frames ready.\n"

.subsections_via_symbols
