	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_clr_sd_entry
_i40iw_clr_sd_entry:                    ## @i40iw_clr_sd_entry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_I40IW_HMC_MAX_BP_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_I40E_PFHMC_SDDATALOW_PMSDBPCOUNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r8d
	movq	_I40IW_SD_TYPE_PAGED@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	setne	%al
	movq	_I40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%r8d, %eax
	movl	%eax, (%rdx)
	movq	_I40E_PFHMC_SDCMD_PMSDWR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edi
	orl	$32768, %edi                    ## imm = 0x8000
	movl	%edi, 4(%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_HMC_MAX_BP_COUNT,4,2     ## @I40IW_HMC_MAX_BP_COUNT
	.comm	_I40E_PFHMC_SDDATALOW_PMSDBPCOUNT_SHIFT,4,2 ## @I40E_PFHMC_SDDATALOW_PMSDBPCOUNT_SHIFT
	.comm	_I40IW_SD_TYPE_PAGED,4,2        ## @I40IW_SD_TYPE_PAGED
	.comm	_I40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT,4,2 ## @I40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT
	.comm	_I40E_PFHMC_SDCMD_PMSDWR_SHIFT,4,2 ## @I40E_PFHMC_SDCMD_PMSDWR_SHIFT
	.no_dead_strip	_i40iw_clr_sd_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_clr_sd_entry
_i40iw_clr_sd_entry:                    ; @i40iw_clr_sd_entry
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _I40IW_HMC_MAX_BP_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_HMC_MAX_BP_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I40E_PFHMC_SDDATALOW_PMSDBPCOUNT_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40E_PFHMC_SDDATALOW_PMSDBPCOUNT_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _I40IW_SD_TYPE_PAGED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _I40IW_SD_TYPE_PAGED@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh8:
	ldr	w9, [x10]
	cmp	w9, w1
	cset	w9, ne
Lloh9:
	adrp	x10, _I40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _I40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x2]
Lloh12:
	adrp	x8, _I40E_PFHMC_SDCMD_PMSDWR_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40E_PFHMC_SDCMD_PMSDWR_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w8, w8, w0
	orr	w8, w8, #0x8000
	str	w8, [x2, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_I40IW_HMC_MAX_BP_COUNT,4,2     ; @I40IW_HMC_MAX_BP_COUNT
	.comm	_I40E_PFHMC_SDDATALOW_PMSDBPCOUNT_SHIFT,4,2 ; @I40E_PFHMC_SDDATALOW_PMSDBPCOUNT_SHIFT
	.comm	_I40IW_SD_TYPE_PAGED,4,2        ; @I40IW_SD_TYPE_PAGED
	.comm	_I40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT,4,2 ; @I40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT
	.comm	_I40E_PFHMC_SDCMD_PMSDWR_SHIFT,4,2 ; @I40E_PFHMC_SDCMD_PMSDWR_SHIFT
	.no_dead_strip	_i40iw_clr_sd_entry
.subsections_via_symbols
