	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function epb_access
_epb_access:                            ## @epb_access
	.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
	addl	$-128, %esi
	xorl	%ebx, %ebx
	cmpl	$2, %esi
	ja	LBB0_5
## %bb.1:
	movl	%edx, %r12d
	movq	%rdi, %r14
	movslq	%esi, %r13
	leaq	l_switch.table.epb_access.1(%rip), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax), %r15d
	movq	_kr_scratch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_qib_read_kreg32
	movl	$15, %edi
	callq	_udelay
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_qib_read_kreg32
	movq	_EPB_ACC_GNT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	setne	%bl
	testl	%r12d, %r12d
	js	LBB0_2
## %bb.3:
	je	LBB0_5
## %bb.4:
	leaq	l_switch.table.epb_access(%rip), %rax
	movl	(%rax,%r13,4), %edx
	movq	_EPB_ACC_REQ@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rcx, %r12
	callq	_qib_write_kreg
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_qib_read_kreg32
	movl	$5, %edi
	callq	_udelay
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_qib_read_kreg32
	andl	(%r12), %eax
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sbbl	%ecx, %ecx
	orl	%ecx, %ebx
	jmp	LBB0_5
LBB0_2:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movq	%rcx, %r13
	callq	_qib_write_kreg
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_qib_read_kreg32
	movl	$5, %edi
	callq	_udelay
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_qib_read_kreg32
	andl	(%r13), %eax
	negl	%eax
	sbbl	%r12d, %r12d
	orl	%r12d, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kr_ibsd_epb_access_ctrl,4,2    ## @kr_ibsd_epb_access_ctrl
	.comm	_kr_pciesd_epb_access_ctrl,4,2  ## @kr_pciesd_epb_access_ctrl
	.comm	_kr_scratch,4,2                 ## @kr_scratch
	.comm	_EPB_ACC_GNT,4,2                ## @EPB_ACC_GNT
	.comm	_EPB_ACC_REQ,4,2                ## @EPB_ACC_REQ
	.no_dead_strip	_epb_access
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.epb_access
l_switch.table.epb_access:
	.space	4
	.long	2                               ## 0x2
	.long	0                               ## 0x0

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.epb_access.1
l_switch.table.epb_access.1:
	.quad	_kr_pciesd_epb_access_ctrl
	.quad	_kr_pciesd_epb_access_ctrl
	.quad	_kr_ibsd_epb_access_ctrl

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function epb_access
_epb_access:                            ; @epb_access
	.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
	sub	w24, w1, #128
	cmp	w24, #2
	b.hi	LBB0_4
; %bb.1:
	mov	x22, x2
	mov	x19, x0
Lloh0:
	adrp	x8, l_switch.table.epb_access.1@PAGE
Lloh1:
	add	x8, x8, l_switch.table.epb_access.1@PAGEOFF
	ldr	x8, [x8, w24, sxtw #3]
	ldr	w21, [x8]
Lloh2:
	adrp	x8, _kr_scratch@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kr_scratch@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_qib_read_kreg32
	mov	w0, #15
	bl	_udelay
	mov	x0, x19
	mov	x1, x21
	bl	_qib_read_kreg32
Lloh5:
	adrp	x23, _EPB_ACC_GNT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _EPB_ACC_GNT@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	cset	w20, ne
	tbnz	w22, #31, LBB0_5
; %bb.2:
	cbz	w22, LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, l_switch.table.epb_access@PAGE
Lloh8:
	add	x8, x8, l_switch.table.epb_access@PAGEOFF
	ldr	w8, [x8, w24, sxtw #2]
Lloh9:
	adrp	x9, _EPB_ACC_REQ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EPB_ACC_REQ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x1, x21
	bl	_qib_write_kreg
	mov	x0, x19
	mov	x1, x21
	bl	_qib_read_kreg32
	mov	w0, #5
	bl	_udelay
	mov	x0, x19
	mov	x1, x21
	bl	_qib_read_kreg32
	ldr	w8, [x23]
	tst	w8, w0
	csinv	w20, w20, wzr, ne
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_qib_write_kreg
	mov	x0, x19
	mov	x1, x21
	bl	_qib_read_kreg32
	mov	w0, #5
	bl	_udelay
	mov	x0, x19
	mov	x1, x21
	bl	_qib_read_kreg32
	ldr	w8, [x23]
	tst	w8, w0
	csinv	w20, w20, wzr, eq
LBB0_6:
	mov	x0, x20
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_kr_ibsd_epb_access_ctrl,4,2    ; @kr_ibsd_epb_access_ctrl
	.comm	_kr_pciesd_epb_access_ctrl,4,2  ; @kr_pciesd_epb_access_ctrl
	.comm	_kr_scratch,4,2                 ; @kr_scratch
	.comm	_EPB_ACC_GNT,4,2                ; @EPB_ACC_GNT
	.comm	_EPB_ACC_REQ,4,2                ; @EPB_ACC_REQ
	.no_dead_strip	_epb_access
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.epb_access
l_switch.table.epb_access:
	.space	4
	.long	2                               ; 0x2
	.long	0                               ; 0x0

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.epb_access.1
l_switch.table.epb_access.1:
	.quad	_kr_pciesd_epb_access_ctrl
	.quad	_kr_pciesd_epb_access_ctrl
	.quad	_kr_ibsd_epb_access_ctrl

.subsections_via_symbols
