	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_pmc_llseek                 ## -- Begin function wil_pmc_llseek
	.p2align	4, 0x90
_wil_pmc_llseek:                        ## @wil_pmc_llseek
	.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
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_wil_is_pmc_allocated
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r13, %rcx
	movq	16(%rbx), %r13
	imulq	8(%rbx), %r13
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	movq	%r13, %rax
	cmpl	$2, %r12d
	je	LBB0_7
## %bb.5:
	cmpl	$1, %r12d
	jne	LBB0_10
## %bb.6:
	movq	%rcx, %rax
	addq	(%r15), %rax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wil_err
	movq	_EPERM@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	subq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	subq	(%r15), %r13
	jmp	LBB0_9
LBB0_3:
	movq	%rcx, %rax
LBB0_7:
	cmpq	%r13, %rax
	cmovbq	%rax, %r13
	movq	%r13, (%r15)
	jmp	LBB0_8
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subq	(%rax), %r13
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error, pmc is not allocated!\n"

	.comm	_EPERM,8,3                      ## @EPERM
	.comm	_EINVAL,8,3                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_pmc_llseek                 ; -- Begin function wil_pmc_llseek
	.p2align	2
_wil_pmc_llseek:                        ; @wil_pmc_llseek
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	add	x19, x22, #24
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x22
	bl	_wil_is_pmc_allocated
	cbz	w0, LBB0_5
; %bb.1:
	ldp	x8, x9, [x22, #8]
	mul	x8, x9, x8
	cbz	w23, LBB0_7
; %bb.2:
	cmp	w23, #2
	b.eq	LBB0_6
; %bb.3:
	cmp	w23, #1
	b.ne	LBB0_8
; %bb.4:
	ldr	x9, [x20]
	add	x21, x9, x21
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_wil_err
Lloh2:
	adrp	x20, _EPERM@GOTPAGE
Lloh3:
	ldr	x20, [x20, _EPERM@GOTPAGEOFF]
	ldr	x8, [x20]
	neg	x8, x8
	str	x8, [x22]
	mov	x0, x19
	bl	_mutex_unlock
	ldr	x8, [x20]
	neg	x21, x8
	b	LBB0_10
LBB0_6:
	mov	x21, x8
LBB0_7:
	cmp	x21, x8
	csel	x21, x21, x8, lo
	str	x21, [x20]
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	neg	x21, x8
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error, pmc is not allocated!\n"

	.comm	_EPERM,8,3                      ; @EPERM
	.comm	_EINVAL,8,3                     ; @EINVAL
.subsections_via_symbols
