	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function espi_setup_for_ixf1010
_espi_setup_for_ixf1010:                ## @espi_setup_for_ixf1010
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_A_ESPI_CALENDAR_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rdi), %rsi
	movl	$1, %edi
	callq	_writel
	cmpl	$4, %r14d
	jne	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_is_T2
	movq	_A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r15), %rsi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$3840, %edi                     ## imm = 0xF00
	callq	_writel
	movl	$960, %edi                      ## imm = 0x3C0
	jmp	LBB0_5
LBB0_4:
	movq	_A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	$8191, %edi                     ## imm = 0x1FFF
	callq	_writel
	movl	$2047, %edi                     ## imm = 0x7FF
	jmp	LBB0_5
LBB0_3:
	movl	$2047, %edi                     ## imm = 0x7FF
	callq	_writel
	movl	$511, %edi                      ## imm = 0x1FF
LBB0_5:
	movq	_A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movl	%r14d, %edi
	callq	_V_RX_NPORTS
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_V_TX_NPORTS
	orl	%eax, %ebx
	movq	_A_PORT_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_A_ESPI_CALENDAR_LENGTH,8,3     ## @A_ESPI_CALENDAR_LENGTH
	.comm	_A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK,8,3 ## @A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK
	.comm	_A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK,8,3 ## @A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK
	.comm	_A_PORT_CONFIG,8,3              ## @A_PORT_CONFIG
	.no_dead_strip	_espi_setup_for_ixf1010
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function espi_setup_for_ixf1010
_espi_setup_for_ixf1010:                ; @espi_setup_for_ixf1010
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _A_ESPI_CALENDAR_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _A_ESPI_CALENDAR_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel
	cmp	w20, #4
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_is_T2
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #3840
	bl	_writel
	mov	w0, #960
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #8191
	bl	_writel
	mov	w0, #2047
	b	LBB0_5
LBB0_4:
	mov	w0, #2047
	bl	_writel
	mov	w0, #511
LBB0_5:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x20
	bl	_V_RX_NPORTS
	mov	x21, x0
	mov	x0, x20
	bl	_V_TX_NPORTS
	orr	w0, w0, w21
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _A_PORT_CONFIG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _A_PORT_CONFIG@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	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	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_A_ESPI_CALENDAR_LENGTH,8,3     ; @A_ESPI_CALENDAR_LENGTH
	.comm	_A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK,8,3 ; @A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK
	.comm	_A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK,8,3 ; @A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK
	.comm	_A_PORT_CONFIG,8,3              ; @A_PORT_CONFIG
	.no_dead_strip	_espi_setup_for_ixf1010
.subsections_via_symbols
