	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_set_sd_entry
_i40iw_set_sd_entry:                    ## @i40iw_set_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	%rcx, %r8
	movq	_I40IW_HMC_MAX_BP_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	_I40E_PFHMC_SDDATALOW_PMSDBPCOUNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edi, %eax
	movq	_I40IW_SD_TYPE_PAGED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	%edx, (%rcx)
	setne	%dil
	movq	_I40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	orl	%eax, %edi
	movq	_I40E_PFHMC_SDDATALOW_PMSDVALID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edi
	movl	%edi, (%r8)
	movq	_I40E_PFHMC_SDCMD_PMSDWR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %esi
	orl	$32768, %esi                    ## imm = 0x8000
	movl	%esi, 4(%r8)
	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_SDDATALOW_PMSDVALID_SHIFT,4,2 ## @I40E_PFHMC_SDDATALOW_PMSDVALID_SHIFT
	.comm	_I40E_PFHMC_SDCMD_PMSDWR_SHIFT,4,2 ## @I40E_PFHMC_SDCMD_PMSDWR_SHIFT
	.no_dead_strip	_i40iw_set_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_set_sd_entry
_i40iw_set_sd_entry:                    ; @i40iw_set_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]
	lsl	w8, w8, w9
	orr	w8, w8, w0
Lloh6:
	adrp	x9, _I40IW_SD_TYPE_PAGED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I40IW_SD_TYPE_PAGED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w2
Lloh9:
	adrp	x9, _I40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I40E_PFHMC_SDDATALOW_PMSDTYPE_SHIFT@GOTPAGEOFF]
	cset	w10, ne
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _I40E_PFHMC_SDDATALOW_PMSDVALID_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I40E_PFHMC_SDDATALOW_PMSDVALID_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _I40E_PFHMC_SDCMD_PMSDWR_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _I40E_PFHMC_SDCMD_PMSDWR_SHIFT@GOTPAGEOFF]
	str	w8, [x3]
Lloh17:
	ldr	w8, [x9]
	lsl	w8, w10, w8
	orr	w8, w8, w1
	orr	w8, w8, #0x8000
	str	w8, [x3, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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_SDDATALOW_PMSDVALID_SHIFT,4,2 ; @I40E_PFHMC_SDDATALOW_PMSDVALID_SHIFT
	.comm	_I40E_PFHMC_SDCMD_PMSDWR_SHIFT,4,2 ; @I40E_PFHMC_SDCMD_PMSDWR_SHIFT
	.no_dead_strip	_i40iw_set_sd_entry
.subsections_via_symbols
