	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8327_phy_fixup
_ar8327_phy_fixup:                      ## @ar8327_phy_fixup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$4, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$2, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	$746, %ecx                      ## imm = 0x2EA
	callq	_ar8xxx_phy_dbg_write
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$61, %edx
	movl	$26784, %ecx                    ## imm = 0x68A0
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$7, %edx
	movl	$60, %ecx
	xorl	%r8d, %r8d
	callq	_ar8xxx_phy_mmd_write
LBB0_6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$3, %edx
	movl	$32781, %ecx                    ## imm = 0x800D
	movl	$32831, %r8d                    ## imm = 0x803F
	callq	_ar8xxx_phy_mmd_write
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$61, %edx
	movl	$26720, %ecx                    ## imm = 0x6860
	callq	_ar8xxx_phy_dbg_write
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$5, %edx
	movl	$11334, %ecx                    ## imm = 0x2C46
	callq	_ar8xxx_phy_dbg_write
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$60, %edx
	movl	$24576, %ecx                    ## imm = 0x6000
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ar8xxx_phy_dbg_write           ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ar8327_phy_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar8327_phy_fixup
_ar8327_phy_fixup:                      ; @ar8327_phy_fixup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #4
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #2
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	w3, #746
	bl	_ar8xxx_phy_dbg_write
	mov	x0, x20
	mov	x1, x19
	mov	w2, #61
	mov	w3, #26784
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #7
	mov	w3, #60
	mov	w4, #0
	bl	_ar8xxx_phy_mmd_write
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #3
	mov	w3, #32781
	mov	w4, #32831
	bl	_ar8xxx_phy_mmd_write
	mov	x0, x20
	mov	x1, x19
	mov	w2, #61
	mov	w3, #26720
	bl	_ar8xxx_phy_dbg_write
	mov	x0, x20
	mov	x1, x19
	mov	w2, #5
	mov	w3, #11334
	bl	_ar8xxx_phy_dbg_write
	mov	x0, x20
	mov	x1, x19
	mov	w2, #60
	mov	w3, #24576
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ar8xxx_phy_dbg_write
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ar8327_phy_fixup
.subsections_via_symbols
