	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netsec_stop_gmac
_netsec_stop_gmac:                      ## @netsec_stop_gmac
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GMAC_REG_OMR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	_netsec_mac_read
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_NETSEC_GMAC_OMR_REG_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NETSEC_GMAC_OMR_REG_ST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, -20(%rbp)
	movq	_NETSEC_REG_NRM_RX_INTEN_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_netsec_write
	movq	_NETSEC_REG_NRM_TX_INTEN_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_netsec_write
	movl	(%r14), %esi
	movl	-20(%rbp), %edx
	movq	%rbx, %rdi
	callq	_netsec_mac_write
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GMAC_REG_OMR,4,2               ## @GMAC_REG_OMR
	.comm	_NETSEC_GMAC_OMR_REG_SR,4,2     ## @NETSEC_GMAC_OMR_REG_SR
	.comm	_NETSEC_GMAC_OMR_REG_ST,4,2     ## @NETSEC_GMAC_OMR_REG_ST
	.comm	_NETSEC_REG_NRM_RX_INTEN_CLR,4,2 ## @NETSEC_REG_NRM_RX_INTEN_CLR
	.comm	_NETSEC_REG_NRM_TX_INTEN_CLR,4,2 ## @NETSEC_REG_NRM_TX_INTEN_CLR
	.no_dead_strip	_netsec_stop_gmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netsec_stop_gmac
_netsec_stop_gmac:                      ; @netsec_stop_gmac
	.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, _GMAC_REG_OMR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GMAC_REG_OMR@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_netsec_mac_read
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _NETSEC_GMAC_OMR_REG_SR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETSEC_GMAC_OMR_REG_SR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
Lloh5:
	adrp	x10, _NETSEC_GMAC_OMR_REG_ST@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NETSEC_GMAC_OMR_REG_ST@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w8, w8, w10
	bic	w8, w9, w8
	str	w8, [sp, #12]
Lloh8:
	adrp	x8, _NETSEC_REG_NRM_RX_INTEN_CLR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETSEC_REG_NRM_RX_INTEN_CLR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_netsec_write
Lloh11:
	adrp	x8, _NETSEC_REG_NRM_TX_INTEN_CLR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETSEC_REG_NRM_TX_INTEN_CLR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_netsec_write
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_netsec_mac_write
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_REG_OMR,4,2               ; @GMAC_REG_OMR
	.comm	_NETSEC_GMAC_OMR_REG_SR,4,2     ; @NETSEC_GMAC_OMR_REG_SR
	.comm	_NETSEC_GMAC_OMR_REG_ST,4,2     ; @NETSEC_GMAC_OMR_REG_ST
	.comm	_NETSEC_REG_NRM_RX_INTEN_CLR,4,2 ; @NETSEC_REG_NRM_RX_INTEN_CLR
	.comm	_NETSEC_REG_NRM_TX_INTEN_CLR,4,2 ; @NETSEC_REG_NRM_TX_INTEN_CLR
	.no_dead_strip	_netsec_stop_gmac
.subsections_via_symbols
