	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_hw_disable_phy_restart  ## -- Begin function ar9003_hw_disable_phy_restart
	.p2align	4, 0x90
_ar9003_hw_disable_phy_restart:         ## @ar9003_hw_disable_phy_restart
	.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
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_AR_PHY_WATCHDOG_RX_OFDM_SM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MS
	cmpl	$11, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$0, (%rbx)
	je	LBB0_2
LBB0_3:
	movl	$1, (%rbx)
	movq	_AR_PHY_RESTART@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movq	_AR_PHY_RESTART_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_WATCHDOG_RX_OFDM_SM,4,2 ## @AR_PHY_WATCHDOG_RX_OFDM_SM
	.comm	_AR_PHY_RESTART,4,2             ## @AR_PHY_RESTART
	.comm	_AR_PHY_RESTART_ENA,4,2         ## @AR_PHY_RESTART_ENA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_hw_disable_phy_restart  ; -- Begin function ar9003_hw_disable_phy_restart
	.p2align	2
_ar9003_hw_disable_phy_restart:         ; @ar9003_hw_disable_phy_restart
	.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, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _AR_PHY_WATCHDOG_RX_OFDM_SM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_PHY_WATCHDOG_RX_OFDM_SM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MS
	cmp	w0, #11
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
Lloh3:
	adrp	x20, _AR_PHY_RESTART@GOTPAGE
Lloh4:
	ldr	x20, [x20, _AR_PHY_RESTART@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_READ
Lloh5:
	adrp	x8, _AR_PHY_RESTART_ENA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_PHY_RESTART_ENA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_WRITE
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_WATCHDOG_RX_OFDM_SM,4,2 ; @AR_PHY_WATCHDOG_RX_OFDM_SM
	.comm	_AR_PHY_RESTART,4,2             ; @AR_PHY_RESTART
	.comm	_AR_PHY_RESTART_ENA,4,2         ; @AR_PHY_RESTART_ENA
.subsections_via_symbols
