	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_xgmac_disable
_hns_xgmac_disable:                     ## @hns_xgmac_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MAC_COMM_MODE_TX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hns_xgmac_tx_enable
	jmp	LBB0_6
LBB0_2:
	movq	_MAC_COMM_MODE_RX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_MAC_COMM_MODE_RX_AND_TX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hns_xgmac_tx_enable
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hns_xgmac_rx_enable
LBB0_6:
	movq	_HNS_XGMAC_LF_INSERT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hns_xgmac_lf_rf_insert         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_COMM_MODE_TX,4,2           ## @MAC_COMM_MODE_TX
	.comm	_MAC_COMM_MODE_RX,4,2           ## @MAC_COMM_MODE_RX
	.comm	_MAC_COMM_MODE_RX_AND_TX,4,2    ## @MAC_COMM_MODE_RX_AND_TX
	.comm	_HNS_XGMAC_LF_INSERT,4,2        ## @HNS_XGMAC_LF_INSERT
	.no_dead_strip	_hns_xgmac_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_xgmac_disable
_hns_xgmac_disable:                     ; @hns_xgmac_disable
	.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
Lloh0:
	adrp	x8, _MAC_COMM_MODE_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_COMM_MODE_TX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_hns_xgmac_tx_enable
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _MAC_COMM_MODE_RX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_COMM_MODE_RX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _MAC_COMM_MODE_RX_AND_TX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_COMM_MODE_RX_AND_TX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_hns_xgmac_tx_enable
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_hns_xgmac_rx_enable
LBB0_6:
Lloh9:
	adrp	x8, _HNS_XGMAC_LF_INSERT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HNS_XGMAC_LF_INSERT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hns_xgmac_lf_rf_insert
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_COMM_MODE_TX,4,2           ; @MAC_COMM_MODE_TX
	.comm	_MAC_COMM_MODE_RX,4,2           ; @MAC_COMM_MODE_RX
	.comm	_MAC_COMM_MODE_RX_AND_TX,4,2    ; @MAC_COMM_MODE_RX_AND_TX
	.comm	_HNS_XGMAC_LF_INSERT,4,2        ; @HNS_XGMAC_LF_INSERT
	.no_dead_strip	_hns_xgmac_disable
.subsections_via_symbols
