	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gswip_bcm_ram_entry_read
_gswip_bcm_ram_entry_read:              ## @gswip_bcm_ram_entry_read
	.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, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_GSWIP_BM_RAM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_gswip_switch_w
	movq	_GSWIP_BM_RAM_CTRL_ADDR_MASK@GOTPCREL(%rip), %rax
	movq	_GSWIP_BM_RAM_CTRL_OPMOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_GSWIP_BM_RAM_CTRL_BAS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	%r15d, %edx
	movq	_GSWIP_BM_RAM_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	callq	_gswip_switch_mask
	movl	(%r13), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_gswip_switch_r_timeout
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dev_err
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	xorl	%edi, %edi
	callq	_GSWIP_BM_RAM_VAL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_gswip_switch_r
	movl	%eax, %r14d
	movl	$1, %edi
	callq	_GSWIP_BM_RAM_VAL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_gswip_switch_r
	shll	$16, %eax
	orl	%r14d, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSWIP_BM_RAM_ADDR,4,2          ## @GSWIP_BM_RAM_ADDR
	.comm	_GSWIP_BM_RAM_CTRL_ADDR_MASK,4,2 ## @GSWIP_BM_RAM_CTRL_ADDR_MASK
	.comm	_GSWIP_BM_RAM_CTRL_OPMOD,4,2    ## @GSWIP_BM_RAM_CTRL_OPMOD
	.comm	_GSWIP_BM_RAM_CTRL_BAS,4,2      ## @GSWIP_BM_RAM_CTRL_BAS
	.comm	_GSWIP_BM_RAM_CTRL,4,2          ## @GSWIP_BM_RAM_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout while reading table: %u, index: %u"

	.no_dead_strip	_gswip_bcm_ram_entry_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gswip_bcm_ram_entry_read
_gswip_bcm_ram_entry_read:              ; @gswip_bcm_ram_entry_read
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GSWIP_BM_RAM_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSWIP_BM_RAM_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_gswip_switch_w
Lloh3:
	adrp	x8, _GSWIP_BM_RAM_CTRL_ADDR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSWIP_BM_RAM_CTRL_ADDR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GSWIP_BM_RAM_CTRL_OPMOD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GSWIP_BM_RAM_CTRL_OPMOD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x22, _GSWIP_BM_RAM_CTRL_BAS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _GSWIP_BM_RAM_CTRL_BAS@GOTPAGEOFF]
	orr	w1, w9, w8
	ldr	w8, [x22]
	orr	w2, w8, w21
Lloh11:
	adrp	x23, _GSWIP_BM_RAM_CTRL@GOTPAGE
Lloh12:
	ldr	x23, [x23, _GSWIP_BM_RAM_CTRL@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x19
	bl	_gswip_switch_mask
	ldr	w1, [x23]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_gswip_switch_r_timeout
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_dev_err
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	bl	_GSWIP_BM_RAM_VAL
	mov	x1, x0
	mov	x0, x19
	bl	_gswip_switch_r
	mov	x20, x0
	mov	w0, #1
	bl	_GSWIP_BM_RAM_VAL
	mov	x1, x0
	mov	x0, x19
	bl	_gswip_switch_r
	orr	w0, w20, w0, lsl #16
LBB0_3:
	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	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GSWIP_BM_RAM_ADDR,4,2          ; @GSWIP_BM_RAM_ADDR
	.comm	_GSWIP_BM_RAM_CTRL_ADDR_MASK,4,2 ; @GSWIP_BM_RAM_CTRL_ADDR_MASK
	.comm	_GSWIP_BM_RAM_CTRL_OPMOD,4,2    ; @GSWIP_BM_RAM_CTRL_OPMOD
	.comm	_GSWIP_BM_RAM_CTRL_BAS,4,2      ; @GSWIP_BM_RAM_CTRL_BAS
	.comm	_GSWIP_BM_RAM_CTRL,4,2          ; @GSWIP_BM_RAM_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout while reading table: %u, index: %u"

	.no_dead_strip	_gswip_bcm_ram_entry_read
.subsections_via_symbols
