	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_csi_read
_rtl_csi_read:                          ## @rtl_csi_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_PCI_FUNC
	movq	_CSIAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CSIAR_ADDR_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	shll	$16, %eax
	orl	%eax, %ebx
	movq	_CSIAR_BYTE_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_RTL_W32
	movq	_rtl_csiar_cond@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	movl	$100, %ecx
	callq	_rtl_udelay_loop_wait_high
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_CSIDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_RTL_R32                        ## TAILCALL
LBB0_1:
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSIAR,4,2                      ## @CSIAR
	.comm	_CSIAR_ADDR_MASK,4,2            ## @CSIAR_ADDR_MASK
	.comm	_CSIAR_BYTE_ENABLE,4,2          ## @CSIAR_BYTE_ENABLE
	.comm	_rtl_csiar_cond,4,2             ## @rtl_csiar_cond
	.comm	_CSIDR,4,2                      ## @CSIDR
	.no_dead_strip	_rtl_csi_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_csi_read
_rtl_csi_read:                          ; @rtl_csi_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_PCI_FUNC
Lloh0:
	adrp	x8, _CSIAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSIAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CSIAR_ADDR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSIAR_ADDR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w20
	orr	w8, w8, w0, lsl #16
Lloh6:
	adrp	x9, _CSIAR_BYTE_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CSIAR_BYTE_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_RTL_W32
Lloh9:
	adrp	x1, _rtl_csiar_cond@GOTPAGE
Lloh10:
	ldr	x1, [x1, _rtl_csiar_cond@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #10
	mov	w3, #100
	bl	_rtl_udelay_loop_wait_high
	cbz	x0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _CSIDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSIDR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RTL_R32
LBB0_2:
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CSIAR,4,2                      ; @CSIAR
	.comm	_CSIAR_ADDR_MASK,4,2            ; @CSIAR_ADDR_MASK
	.comm	_CSIAR_BYTE_ENABLE,4,2          ; @CSIAR_BYTE_ENABLE
	.comm	_rtl_csiar_cond,4,2             ; @rtl_csiar_cond
	.comm	_CSIDR,4,2                      ; @CSIDR
	.no_dead_strip	_rtl_csi_read
.subsections_via_symbols
