	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8216_vtu_op
_ar8216_vtu_op:                         ## @ar8216_vtu_op
	.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, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_AR8216_REG_VTU@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_AR8216_VTU_ACTIVE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_ar8216_wait_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_AR8216_VTU_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_AR8216_VTU_OP_LOAD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	_AR8216_VTUDATA_MEMBER@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_AR8216_VTUDATA_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_AR8216_REG_VTU_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ar8xxx_write
LBB0_3:
	orl	(%r13), %r14d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ar8xxx_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR8216_REG_VTU,4,2             ## @AR8216_REG_VTU
	.comm	_AR8216_VTU_ACTIVE,4,2          ## @AR8216_VTU_ACTIVE
	.comm	_AR8216_VTU_OP,4,2              ## @AR8216_VTU_OP
	.comm	_AR8216_VTU_OP_LOAD,4,2         ## @AR8216_VTU_OP_LOAD
	.comm	_AR8216_VTUDATA_MEMBER,4,2      ## @AR8216_VTUDATA_MEMBER
	.comm	_AR8216_VTUDATA_VALID,4,2       ## @AR8216_VTUDATA_VALID
	.comm	_AR8216_REG_VTU_DATA,4,2        ## @AR8216_REG_VTU_DATA
	.no_dead_strip	_ar8216_vtu_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar8216_vtu_op
_ar8216_vtu_op:                         ; @ar8216_vtu_op
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _AR8216_REG_VTU@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AR8216_REG_VTU@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _AR8216_VTU_ACTIVE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AR8216_VTU_ACTIVE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_ar8216_wait_bit
	cbz	x0, LBB0_2
; %bb.1:
	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
LBB0_2:
Lloh4:
	adrp	x8, _AR8216_VTU_OP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR8216_VTU_OP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh7:
	adrp	x9, _AR8216_VTU_OP_LOAD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AR8216_VTU_OP_LOAD@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _AR8216_VTUDATA_MEMBER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR8216_VTUDATA_MEMBER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _AR8216_VTUDATA_VALID@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AR8216_VTUDATA_VALID@GOTPAGEOFF]
	and	w8, w8, w21
Lloh15:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh16:
	adrp	x8, _AR8216_REG_VTU_DATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR8216_REG_VTU_DATA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ar8xxx_write
LBB0_4:
	ldr	w8, [x23]
	orr	w2, w8, w20
	ldr	w1, [x22]
	mov	x0, x19
	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	_ar8xxx_write
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AR8216_REG_VTU,4,2             ; @AR8216_REG_VTU
	.comm	_AR8216_VTU_ACTIVE,4,2          ; @AR8216_VTU_ACTIVE
	.comm	_AR8216_VTU_OP,4,2              ; @AR8216_VTU_OP
	.comm	_AR8216_VTU_OP_LOAD,4,2         ; @AR8216_VTU_OP_LOAD
	.comm	_AR8216_VTUDATA_MEMBER,4,2      ; @AR8216_VTUDATA_MEMBER
	.comm	_AR8216_VTUDATA_VALID,4,2       ; @AR8216_VTUDATA_VALID
	.comm	_AR8216_REG_VTU_DATA,4,2        ; @AR8216_REG_VTU_DATA
	.no_dead_strip	_ar8216_vtu_op
.subsections_via_symbols
