	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8327_atu_flush_port
_ar8327_atu_flush_port:                 ## @ar8327_atu_flush_port
	.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	%esi, %ebx
	movq	%rdi, %r14
	movq	_AR8327_REG_ATU_FUNC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_AR8327_ATU_FUNC_BUSY@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_ar8216_wait_bit
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_AR8327_ATU_PORT_NUM_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_AR8327_ATU_FUNC_OP_FLUSH_PORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	orl	(%r13), %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ar8xxx_write
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR8327_REG_ATU_FUNC,4,2        ## @AR8327_REG_ATU_FUNC
	.comm	_AR8327_ATU_FUNC_BUSY,4,2       ## @AR8327_ATU_FUNC_BUSY
	.comm	_AR8327_ATU_PORT_NUM_S,4,2      ## @AR8327_ATU_PORT_NUM_S
	.comm	_AR8327_ATU_FUNC_OP_FLUSH_PORT,4,2 ## @AR8327_ATU_FUNC_OP_FLUSH_PORT
	.no_dead_strip	_ar8327_atu_flush_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar8327_atu_flush_port
_ar8327_atu_flush_port:                 ; @ar8327_atu_flush_port
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _AR8327_REG_ATU_FUNC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AR8327_REG_ATU_FUNC@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _AR8327_ATU_FUNC_BUSY@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AR8327_ATU_FUNC_BUSY@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_ar8216_wait_bit
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _AR8327_ATU_PORT_NUM_S@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR8327_ATU_PORT_NUM_S@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _AR8327_ATU_FUNC_OP_FLUSH_PORT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AR8327_ATU_FUNC_OP_FLUSH_PORT@GOTPAGEOFF]
	lsl	w8, w20, w8
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w2, w8, w9
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ar8xxx_write
LBB0_2:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AR8327_REG_ATU_FUNC,4,2        ; @AR8327_REG_ATU_FUNC
	.comm	_AR8327_ATU_FUNC_BUSY,4,2       ; @AR8327_ATU_FUNC_BUSY
	.comm	_AR8327_ATU_PORT_NUM_S,4,2      ; @AR8327_ATU_PORT_NUM_S
	.comm	_AR8327_ATU_FUNC_OP_FLUSH_PORT,4,2 ; @AR8327_ATU_FUNC_OP_FLUSH_PORT
	.no_dead_strip	_ar8327_atu_flush_port
.subsections_via_symbols
