	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_phy_set_io_cmd       ## -- Begin function rtl8821ae_phy_set_io_cmd
	.p2align	4, 0x90
_rtl8821ae_phy_set_io_cmd:              ## @rtl8821ae_phy_set_io_cmd
	.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, %r14d
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	_COMP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	(%rbx), %r9d
	leaq	L_.str(%rip), %rcx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	leal	-128(%r14), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_reltable.rtl8821ae_phy_set_io_cmd(%rip), %rdx
	movslq	(%rdx,%rax,4), %rcx
	addq	%rdx, %rcx
	movq	_COMP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
	movl	%r14d, 4(%rbx)
	movq	%r15, %rdi
	callq	_rtl8821ae_phy_set_io
	movq	_COMP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	$1, %r12d
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_err
LBB0_4:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_CMD,4,2                   ## @COMP_CMD
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-->IO Cmd(%#x), set_io_inprogress(%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"[IO CMD] Resume DM after scan.\n"

L_.str.2:                               ## @.str.2
	.asciz	"[IO CMD] Pause DM before scan.\n"

L_.str.3:                               ## @.str.3
	.asciz	"switch case %#x not processed\n"

L_.str.4:                               ## @.str.4
	.asciz	"IO Type(%#x)\n"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.rtl8821ae_phy_set_io_cmd
l_reltable.rtl8821ae_phy_set_io_cmd:
	.long	L_.str.1-l_reltable.rtl8821ae_phy_set_io_cmd
	.long	L_.str.2-l_reltable.rtl8821ae_phy_set_io_cmd
	.long	L_.str.2-l_reltable.rtl8821ae_phy_set_io_cmd

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_phy_set_io_cmd       ; -- Begin function rtl8821ae_phy_set_io_cmd
	.p2align	2
_rtl8821ae_phy_set_io_cmd:              ; @rtl8821ae_phy_set_io_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x21, x0
	bl	_rtl_priv
	mov	x20, x0
Lloh0:
	adrp	x23, _COMP_CMD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _COMP_CMD@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _DBG_TRACE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DBG_TRACE@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	w8, [x0]
	stp	x19, x8, [sp]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	sub	w8, w19, #128
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, l_switch.table.rtl8821ae_phy_set_io_cmd@PAGE
Lloh7:
	add	x9, x9, l_switch.table.rtl8821ae_phy_set_io_cmd@PAGEOFF
	ldr	x3, [x9, w8, sxtw #3]
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_RT_TRACE
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w22, #0
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_pr_err
	mov	w22, #0
	b	LBB0_5
LBB0_4:
	mov	w22, #1
	stp	w22, w19, [x20]
	mov	x0, x21
	bl	_rtl8821ae_phy_set_io
	ldr	w1, [x23]
	ldr	w2, [x24]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh10:
	adrp	x3, l_.str.4@PAGE
Lloh11:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_CMD,4,2                   ; @COMP_CMD
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-->IO Cmd(%#x), set_io_inprogress(%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"[IO CMD] Resume DM after scan.\n"

l_.str.2:                               ; @.str.2
	.asciz	"[IO CMD] Pause DM before scan.\n"

l_.str.3:                               ; @.str.3
	.asciz	"switch case %#x not processed\n"

l_.str.4:                               ; @.str.4
	.asciz	"IO Type(%#x)\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.rtl8821ae_phy_set_io_cmd
l_switch.table.rtl8821ae_phy_set_io_cmd:
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.2

.subsections_via_symbols
