	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_dbi_write8
_rtw_dbi_write8:                        ## @rtw_dbi_write8
	.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
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %r13d
	andl	$3, %r13d
	andl	$4092, %ebx                     ## imm = 0xFFC
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_BIT
	leal	12(%r13), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, %ebx
	movq	_REG_DBI_WDATA_V1@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_rtw_write8
	movq	_REG_DBI_FLAG_V1@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_rtw_write16
	movq	(%r12), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_rtw_write8
	movq	(%r12), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	callq	_rtw_read8
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	$-19, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	(%r12), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	callq	_rtw_read8
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rbx), %rax
	testq	%rbx, %rbx
	movq	%rax, %rbx
	jne	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_DBI_WDATA_V1,8,3           ## @REG_DBI_WDATA_V1
	.comm	_REG_DBI_FLAG_V1,8,3            ## @REG_DBI_FLAG_V1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DBI write fail\n"

	.no_dead_strip	_rtw_dbi_write8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_dbi_write8
_rtw_dbi_write8:                        ; @rtw_dbi_write8
	.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
	and	w22, w1, #0x3
	and	w23, w1, #0xffc
	mov	w0, #0
	bl	_BIT
	mov	w8, #12
	bfxil	w8, w21, #0, #2
	lsl	w8, w0, w8
	orr	w21, w8, w23
Lloh0:
	adrp	x8, _REG_DBI_WDATA_V1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_DBI_WDATA_V1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	x0, x19
	mov	x2, x20
	bl	_rtw_write8
Lloh3:
	adrp	x20, _REG_DBI_FLAG_V1@GOTPAGE
Lloh4:
	ldr	x20, [x20, _REG_DBI_FLAG_V1@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	mov	x2, x21
	bl	_rtw_write16
	ldr	x8, [x20]
	add	x1, x8, #2
	mov	x0, x19
	mov	w2, #1
	bl	_rtw_write8
	ldr	x8, [x20]
	add	x1, x8, #2
	mov	x0, x19
	bl	_rtw_read8
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, #-19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x20]
	add	x1, x8, #2
	mov	x0, x19
	bl	_rtw_read8
	cmp	x0, #0
	ccmp	x21, #0, #4, ne
	add	x21, x21, #1
	b.ne	LBB0_2
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_WARN
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_DBI_WDATA_V1,8,3           ; @REG_DBI_WDATA_V1
	.comm	_REG_DBI_FLAG_V1,8,3            ; @REG_DBI_FLAG_V1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DBI write fail\n"

	.no_dead_strip	_rtw_dbi_write8
.subsections_via_symbols
