	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_gmac_disable
_hns_gmac_disable:                      ## @hns_gmac_disable
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_MAC_COMM_MODE_TX@GOTPCREL(%rip), %rax
	movq	_MAC_COMM_MODE_RX_AND_TX@GOTPCREL(%rip), %r15
	cmpl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	cmpl	%ebx, %eax
	jne	LBB0_3
LBB0_2:
	movq	_GMAC_PORT_EN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GMAC_PORT_TX_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_dsaf_set_dev_bit
	movl	(%r15), %eax
LBB0_3:
	movq	_MAC_COMM_MODE_RX@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_6
## %bb.4:
	cmpl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_GMAC_PCS_RX_EN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_dsaf_set_dev_bit
	movq	_GMAC_PORT_EN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GMAC_PORT_RX_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsaf_set_dev_bit               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_COMM_MODE_TX,4,2           ## @MAC_COMM_MODE_TX
	.comm	_MAC_COMM_MODE_RX_AND_TX,4,2    ## @MAC_COMM_MODE_RX_AND_TX
	.comm	_GMAC_PORT_EN_REG,4,2           ## @GMAC_PORT_EN_REG
	.comm	_GMAC_PORT_TX_EN_B,4,2          ## @GMAC_PORT_TX_EN_B
	.comm	_MAC_COMM_MODE_RX,4,2           ## @MAC_COMM_MODE_RX
	.comm	_GMAC_PCS_RX_EN_REG,4,2         ## @GMAC_PCS_RX_EN_REG
	.comm	_GMAC_PORT_RX_EN_B,4,2          ## @GMAC_PORT_RX_EN_B
	.no_dead_strip	_hns_gmac_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_gmac_disable
_hns_gmac_disable:                      ; @hns_gmac_disable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MAC_COMM_MODE_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_COMM_MODE_TX@GOTPAGEOFF]
Lloh2:
	adrp	x22, _MAC_COMM_MODE_RX_AND_TX@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MAC_COMM_MODE_RX_AND_TX@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	ldr	w8, [x22]
	cmp	w9, w1
	ccmp	w8, w1, #4, ne
Lloh5:
	adrp	x21, _GMAC_PORT_EN_REG@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GMAC_PORT_EN_REG@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x21]
Lloh7:
	adrp	x8, _GMAC_PORT_TX_EN_B@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GMAC_PORT_TX_EN_B@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_dsaf_set_dev_bit
	ldr	w8, [x22]
LBB0_2:
Lloh10:
	adrp	x9, _MAC_COMM_MODE_RX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MAC_COMM_MODE_RX@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w9, w20
	ccmp	w8, w20, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _GMAC_PCS_RX_EN_REG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GMAC_PCS_RX_EN_REG@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_dsaf_set_dev_bit
Lloh16:
	adrp	x8, _GMAC_PORT_RX_EN_B@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GMAC_PORT_RX_EN_B@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dsaf_set_dev_bit
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_COMM_MODE_TX,4,2           ; @MAC_COMM_MODE_TX
	.comm	_MAC_COMM_MODE_RX_AND_TX,4,2    ; @MAC_COMM_MODE_RX_AND_TX
	.comm	_GMAC_PORT_EN_REG,4,2           ; @GMAC_PORT_EN_REG
	.comm	_GMAC_PORT_TX_EN_B,4,2          ; @GMAC_PORT_TX_EN_B
	.comm	_MAC_COMM_MODE_RX,4,2           ; @MAC_COMM_MODE_RX
	.comm	_GMAC_PCS_RX_EN_REG,4,2         ; @GMAC_PCS_RX_EN_REG
	.comm	_GMAC_PORT_RX_EN_B,4,2          ; @GMAC_PORT_RX_EN_B
	.no_dead_strip	_hns_gmac_disable
.subsections_via_symbols
