	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8723be_dbi_write
__rtl8723be_dbi_write:                  ## @_rtl8723be_dbi_write
	.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
	leal	3(%r14), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	andl	$-4, %eax
	movl	%esi, %r15d
	subl	%eax, %r15d
	movq	_REG_DBI_WDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r15d, %esi
	callq	_rtl_write_byte
	andl	$65532, %r14d                   ## imm = 0xFFFC
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_BIT
	addb	$12, %r15b
	movl	%r15d, %ecx
	shll	%cl, %eax
	orl	%eax, %r14d
	movq	_REG_DBI_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_rtl_write_word
	movq	_REG_DBI_FLAG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_rtl_write_byte
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	testl	%eax, %eax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %eax
	cmpl	$19, %ebx
	movl	%eax, %ebx
	jb	LBB0_1
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_DBI_WDATA,4,2              ## @REG_DBI_WDATA
	.comm	_REG_DBI_ADDR,4,2               ## @REG_DBI_ADDR
	.comm	_REG_DBI_FLAG,4,2               ## @REG_DBI_FLAG
	.no_dead_strip	__rtl8723be_dbi_write
.subsections_via_symbols

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