	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_fifo_thresh
_pch_fifo_thresh:                       ## @pch_fifo_thresh
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_PCH_FIFO_THRESH@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	%esi, %eax
	jle	LBB0_1
## %bb.7:
	movq	_PCH_CMASK_RDWR@GOTPCREL(%rip), %rax
	movq	_PCH_CMASK_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_PCH_CMASK_ARB@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r15), %rax
	movq	(%rax), %rsi
	addq	$12, %rsi
	callq	_iowrite32
	movq	(%r15), %rax
	movq	(%rax), %rdi
	addq	$8, %rdi
	movq	_PCH_ID2_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pch_can_bit_clear
	movq	(%r15), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	movq	_PCH_IF_MCONT_INTPND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pch_can_bit_clear
	movq	(%r15), %rax
	movq	(%rax), %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pch_can_rw_msg_obj             ## TAILCALL
LBB0_1:
	jge	LBB0_2
## %bb.8:
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pch_can_int_clr                ## TAILCALL
LBB0_2:
	jne	LBB0_6
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pch_can_int_clr
	cmpl	(%r12), %ebx
	jl	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCH_FIFO_THRESH,4,2            ## @PCH_FIFO_THRESH
	.comm	_PCH_CMASK_RDWR,4,2             ## @PCH_CMASK_RDWR
	.comm	_PCH_CMASK_CTRL,4,2             ## @PCH_CMASK_CTRL
	.comm	_PCH_CMASK_ARB,4,2              ## @PCH_CMASK_ARB
	.comm	_PCH_ID2_DIR,4,2                ## @PCH_ID2_DIR
	.comm	_PCH_IF_MCONT_INTPND,4,2        ## @PCH_IF_MCONT_INTPND
	.no_dead_strip	_pch_fifo_thresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_fifo_thresh
_pch_fifo_thresh:                       ; @pch_fifo_thresh
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _PCH_FIFO_THRESH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCH_FIFO_THRESH@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _PCH_CMASK_RDWR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCH_CMASK_RDWR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PCH_CMASK_CTRL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCH_CMASK_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _PCH_CMASK_ARB@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PCH_CMASK_ARB@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh10:
	ldr	w9, [x10]
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x1, x8, #12
	bl	_iowrite32
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, x8, #8
Lloh11:
	adrp	x8, _PCH_ID2_DIR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCH_ID2_DIR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_pch_can_bit_clear
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, x8, #4
Lloh14:
	adrp	x8, _PCH_IF_MCONT_INTPND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCH_IF_MCONT_INTPND@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_pch_can_bit_clear
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pch_can_rw_msg_obj
LBB0_2:
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pch_can_int_clr
LBB0_4:
	cmp	w8, w20
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_7
; %bb.5:
	mov	w20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	mov	x0, x19
	mov	x1, x20
	bl	_pch_can_int_clr
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PCH_FIFO_THRESH,4,2            ; @PCH_FIFO_THRESH
	.comm	_PCH_CMASK_RDWR,4,2             ; @PCH_CMASK_RDWR
	.comm	_PCH_CMASK_CTRL,4,2             ; @PCH_CMASK_CTRL
	.comm	_PCH_CMASK_ARB,4,2              ; @PCH_CMASK_ARB
	.comm	_PCH_ID2_DIR,4,2                ; @PCH_ID2_DIR
	.comm	_PCH_IF_MCONT_INTPND,4,2        ; @PCH_IF_MCONT_INTPND
	.no_dead_strip	_pch_fifo_thresh
.subsections_via_symbols
