	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function storm_memset_hc_disable
_storm_memset_hc_disable:               ## @storm_memset_hc_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	_HC_INDEX_DATA_HC_ENABLED_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	testl	%r8d, %r8d
	cmovel	%eax, %r14d
	movq	_BAR_CSTRORM_INTMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%edx, %edi
	movl	%ebx, %esi
	callq	_CSTORM_STATUS_BLOCK_DATA_FLAGS_OFFSET
	addl	%eax, %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_REG_RD8
	movq	_HC_INDEX_DATA_HC_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	orl	%r14d, %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_REG_WR8
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HC_INDEX_DATA_HC_ENABLED_SHIFT,4,2 ## @HC_INDEX_DATA_HC_ENABLED_SHIFT
	.comm	_BAR_CSTRORM_INTMEM,4,2         ## @BAR_CSTRORM_INTMEM
	.comm	_HC_INDEX_DATA_HC_ENABLED,4,2   ## @HC_INDEX_DATA_HC_ENABLED
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port %x fw_sb_id %d sb_index %d disable %d\n"

	.no_dead_strip	_storm_memset_hc_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function storm_memset_hc_disable
_storm_memset_hc_disable:               ; @storm_memset_hc_disable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	w8, #1
Lloh0:
	adrp	x9, _HC_INDEX_DATA_HC_ENABLED_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HC_INDEX_DATA_HC_ENABLED_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	cmp	w4, #0
	csel	w25, w8, wzr, eq
Lloh3:
	adrp	x8, _BAR_CSTRORM_INTMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BAR_CSTRORM_INTMEM@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x0, x2
	mov	x1, x3
	bl	_CSTORM_STATUS_BLOCK_DATA_FLAGS_OFFSET
	add	w24, w0, w24
	mov	x0, x23
	mov	x1, x24
	bl	_REG_RD8
Lloh6:
	adrp	x8, _HC_INDEX_DATA_HC_ENABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HC_INDEX_DATA_HC_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w2, w8, w25
	mov	x0, x23
	mov	x1, x24
	bl	_REG_WR8
Lloh9:
	adrp	x8, _NETIF_MSG_IFUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_DP
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HC_INDEX_DATA_HC_ENABLED_SHIFT,4,2 ; @HC_INDEX_DATA_HC_ENABLED_SHIFT
	.comm	_BAR_CSTRORM_INTMEM,4,2         ; @BAR_CSTRORM_INTMEM
	.comm	_HC_INDEX_DATA_HC_ENABLED,4,2   ; @HC_INDEX_DATA_HC_ENABLED
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port %x fw_sb_id %d sb_index %d disable %d\n"

	.no_dead_strip	_storm_memset_hc_disable
.subsections_via_symbols
