	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8723be_dbi_read
__rtl8723be_dbi_read:                   ## @_rtl8723be_dbi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	%esi, %edx
	andl	$65532, %edx                    ## imm = 0xFFFC
	movq	_REG_DBI_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rtl_write_word
	movq	_REG_DBI_FLAG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_rtl_write_byte
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$19, %ebx
	movl	%ecx, %ebx
	jb	LBB0_2
LBB0_4:
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_REG_DBI_RDATA@GOTPCREL(%rip), %rax
	leal	3(%r14), %ecx
	testl	%r14d, %r14d
	cmovnsl	%r14d, %ecx
	andl	$-4, %ecx
	subl	%ecx, %r14d
	addl	(%rax), %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_read_byte                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_DBI_ADDR,4,2               ## @REG_DBI_ADDR
	.comm	_REG_DBI_FLAG,4,2               ## @REG_DBI_FLAG
	.comm	_REG_DBI_RDATA,4,2              ## @REG_DBI_RDATA
	.no_dead_strip	__rtl8723be_dbi_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8723be_dbi_read
__rtl8723be_dbi_read:                   ; @_rtl8723be_dbi_read
	.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
	and	w2, w1, #0xfffc
Lloh0:
	adrp	x8, _REG_DBI_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_DBI_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rtl_write_word
Lloh3:
	adrp	x21, _REG_DBI_FLAG@GOTPAGE
Lloh4:
	ldr	x21, [x21, _REG_DBI_FLAG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #2
	bl	_rtl_write_byte
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtl_read_byte
	cbz	w0, LBB0_5
; %bb.1:
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtl_read_byte
	cmp	w0, #0
	ccmp	w22, #19, #2, ne
	add	w22, w22, #1
	b.lo	LBB0_2
; %bb.3:
	cbz	w0, LBB0_5
; %bb.4:
	mov	w0, #0
	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
LBB0_5:
Lloh5:
	adrp	x8, _REG_DBI_RDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_DBI_RDATA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	negs	w9, w20
	and	w9, w9, #0x3
	and	w10, w20, #0x3
	csneg	w9, w10, w9, mi
	add	w1, w8, w9
	mov	x0, x19
	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	_rtl_read_byte
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_DBI_ADDR,4,2               ; @REG_DBI_ADDR
	.comm	_REG_DBI_FLAG,4,2               ; @REG_DBI_FLAG
	.comm	_REG_DBI_RDATA,4,2              ; @REG_DBI_RDATA
	.no_dead_strip	__rtl8723be_dbi_read
.subsections_via_symbols
