	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1c_stop_mac
_atl1c_stop_mac:                        ## @atl1c_stop_mac
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_REG_RXQ_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %r14
	movq	%r14, %rdx
	callq	_AT_READ_REG
	movq	_RXQ_CTRL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_AT_WRITE_REG
	movq	_REG_TXQ_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_AT_READ_REG
	movq	_TXQ_CTRL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_AT_WRITE_REG
	movq	_IDLE_STATUS_RXQ_BUSY@GOTPCREL(%rip), %rax
	movq	_IDLE_STATUS_TXQ_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_atl1c_wait_until_idle
	movq	_REG_MAC_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_AT_READ_REG
	movq	_MAC_CTRL_TX_EN@GOTPCREL(%rip), %rax
	movq	_MAC_CTRL_RX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_AT_WRITE_REG
	movq	_IDLE_STATUS_TXMAC_BUSY@GOTPCREL(%rip), %rax
	movq	_IDLE_STATUS_RXMAC_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_atl1c_wait_until_idle
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_RXQ_CTRL,4,2               ## @REG_RXQ_CTRL
	.comm	_RXQ_CTRL_EN,4,2                ## @RXQ_CTRL_EN
	.comm	_REG_TXQ_CTRL,4,2               ## @REG_TXQ_CTRL
	.comm	_TXQ_CTRL_EN,4,2                ## @TXQ_CTRL_EN
	.comm	_IDLE_STATUS_RXQ_BUSY,4,2       ## @IDLE_STATUS_RXQ_BUSY
	.comm	_IDLE_STATUS_TXQ_BUSY,4,2       ## @IDLE_STATUS_TXQ_BUSY
	.comm	_REG_MAC_CTRL,4,2               ## @REG_MAC_CTRL
	.comm	_MAC_CTRL_TX_EN,4,2             ## @MAC_CTRL_TX_EN
	.comm	_MAC_CTRL_RX_EN,4,2             ## @MAC_CTRL_RX_EN
	.comm	_IDLE_STATUS_TXMAC_BUSY,4,2     ## @IDLE_STATUS_TXMAC_BUSY
	.comm	_IDLE_STATUS_RXMAC_BUSY,4,2     ## @IDLE_STATUS_RXMAC_BUSY
	.no_dead_strip	_atl1c_stop_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1c_stop_mac
_atl1c_stop_mac:                        ; @atl1c_stop_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _REG_RXQ_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_RXQ_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_AT_READ_REG
Lloh2:
	adrp	x8, _RXQ_CTRL_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RXQ_CTRL_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_AT_WRITE_REG
Lloh5:
	adrp	x20, _REG_TXQ_CTRL@GOTPAGE
Lloh6:
	ldr	x20, [x20, _REG_TXQ_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_AT_READ_REG
Lloh7:
	adrp	x8, _TXQ_CTRL_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TXQ_CTRL_EN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_AT_WRITE_REG
Lloh10:
	adrp	x8, _IDLE_STATUS_RXQ_BUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IDLE_STATUS_RXQ_BUSY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _IDLE_STATUS_TXQ_BUSY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IDLE_STATUS_TXQ_BUSY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_atl1c_wait_until_idle
Lloh16:
	adrp	x20, _REG_MAC_CTRL@GOTPAGE
Lloh17:
	ldr	x20, [x20, _REG_MAC_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_AT_READ_REG
Lloh18:
	adrp	x8, _MAC_CTRL_TX_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAC_CTRL_TX_EN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _MAC_CTRL_RX_EN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MAC_CTRL_RX_EN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_AT_WRITE_REG
Lloh24:
	adrp	x8, _IDLE_STATUS_TXMAC_BUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IDLE_STATUS_TXMAC_BUSY@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _IDLE_STATUS_RXMAC_BUSY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IDLE_STATUS_RXMAC_BUSY@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_atl1c_wait_until_idle
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_RXQ_CTRL,4,2               ; @REG_RXQ_CTRL
	.comm	_RXQ_CTRL_EN,4,2                ; @RXQ_CTRL_EN
	.comm	_REG_TXQ_CTRL,4,2               ; @REG_TXQ_CTRL
	.comm	_TXQ_CTRL_EN,4,2                ; @TXQ_CTRL_EN
	.comm	_IDLE_STATUS_RXQ_BUSY,4,2       ; @IDLE_STATUS_RXQ_BUSY
	.comm	_IDLE_STATUS_TXQ_BUSY,4,2       ; @IDLE_STATUS_TXQ_BUSY
	.comm	_REG_MAC_CTRL,4,2               ; @REG_MAC_CTRL
	.comm	_MAC_CTRL_TX_EN,4,2             ; @MAC_CTRL_TX_EN
	.comm	_MAC_CTRL_RX_EN,4,2             ; @MAC_CTRL_RX_EN
	.comm	_IDLE_STATUS_TXMAC_BUSY,4,2     ; @IDLE_STATUS_TXMAC_BUSY
	.comm	_IDLE_STATUS_RXMAC_BUSY,4,2     ; @IDLE_STATUS_RXMAC_BUSY
	.no_dead_strip	_atl1c_stop_mac
.subsections_via_symbols
