	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_nic_config
_iwl_nic_config:                        ## @iwl_nic_config
	.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
	callq	_IWL_OP_MODE_GET_DVM
	movq	%rax, %r12
	movq	8(%rax), %r14
	movq	_CSR_HW_IF_CONFIG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH@GOTPCREL(%rip), %rax
	movq	_CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movl	(%r14), %edi
	callq	_CSR_HW_REV_STEP
	movl	%eax, %ebx
	movq	_CSR_HW_IF_CONFIG_REG_POS_MAC_STEP@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_CSR_HW_REV_DASH
	movq	_CSR_HW_IF_CONFIG_REG_POS_MAC_DASH@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_iwl_trans_set_bits_mask
	movq	16(%r12), %rax
	movl	(%rax), %edx
	movq	_EEPROM_RF_CONFIG_TYPE_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jle	LBB0_1
## %bb.2:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_CSR_HW_IF_CONFIG_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_CSR_HW_IF_CONFIG_REG_POS_PHY_STEP@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	4(%rax), %esi
	movl	8(%rax), %eax
	shll	%cl, %esi
	movq	_CSR_HW_IF_CONFIG_REG_POS_PHY_DASH@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %esi
	orl	%esi, %eax
	movq	8(%r12), %rdi
	movq	_CSR_HW_IF_CONFIG_REG_MSK_PHY_TYPE@GOTPCREL(%rip), %rcx
	movq	_CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_CSR_HW_IF_CONFIG_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%eax, %ecx
	callq	_iwl_trans_set_bits_mask
	movq	16(%r12), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	8(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_IWL_INFO
	movq	%rbx, %rax
LBB0_3:
	movq	8(%r12), %rdi
	movl	(%rax), %esi
	movq	_CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI@GOTPCREL(%rip), %rax
	movq	_CSR_HW_IF_CONFIG_REG_BIT_MAC_SI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_iwl_set_bit
	movq	8(%r12), %rdi
	movq	_APMG_PS_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %ecx
	notl	%ecx
	callq	_iwl_set_bits_mask_prph
	movq	(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_HW_IF_CONFIG_REG,4,2       ## @CSR_HW_IF_CONFIG_REG
	.comm	_CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH,4,2 ## @CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH
	.comm	_CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP,4,2 ## @CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP
	.comm	_CSR_HW_IF_CONFIG_REG_POS_MAC_STEP,4,2 ## @CSR_HW_IF_CONFIG_REG_POS_MAC_STEP
	.comm	_CSR_HW_IF_CONFIG_REG_POS_MAC_DASH,4,2 ## @CSR_HW_IF_CONFIG_REG_POS_MAC_DASH
	.comm	_EEPROM_RF_CONFIG_TYPE_MAX,4,2  ## @EEPROM_RF_CONFIG_TYPE_MAX
	.comm	_CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE,4,2 ## @CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE
	.comm	_CSR_HW_IF_CONFIG_REG_POS_PHY_STEP,4,2 ## @CSR_HW_IF_CONFIG_REG_POS_PHY_STEP
	.comm	_CSR_HW_IF_CONFIG_REG_POS_PHY_DASH,4,2 ## @CSR_HW_IF_CONFIG_REG_POS_PHY_DASH
	.comm	_CSR_HW_IF_CONFIG_REG_MSK_PHY_TYPE,4,2 ## @CSR_HW_IF_CONFIG_REG_MSK_PHY_TYPE
	.comm	_CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP,4,2 ## @CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP
	.comm	_CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH,4,2 ## @CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Radio type=0x%x-0x%x-0x%x\n"

	.comm	_CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI,4,2 ## @CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI
	.comm	_CSR_HW_IF_CONFIG_REG_BIT_MAC_SI,4,2 ## @CSR_HW_IF_CONFIG_REG_BIT_MAC_SI
	.comm	_APMG_PS_CTRL_REG,4,2           ## @APMG_PS_CTRL_REG
	.comm	_APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS,4,2 ## @APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS
	.no_dead_strip	_iwl_nic_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_nic_config
_iwl_nic_config:                        ; @iwl_nic_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_IWL_OP_MODE_GET_DVM
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x23, _CSR_HW_IF_CONFIG_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CSR_HW_IF_CONFIG_REG@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh2:
	adrp	x8, _CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w22, w9, w8
	ldr	w0, [x20]
	bl	_CSR_HW_REV_STEP
Lloh8:
	adrp	x8, _CSR_HW_IF_CONFIG_REG_POS_MAC_STEP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CSR_HW_IF_CONFIG_REG_POS_MAC_STEP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w24, w0, w8
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_CSR_HW_REV_DASH
Lloh11:
	adrp	x8, _CSR_HW_IF_CONFIG_REG_POS_MAC_DASH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSR_HW_IF_CONFIG_REG_POS_MAC_DASH@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w3, w8, w24
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_iwl_trans_set_bits_mask
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
Lloh14:
	adrp	x10, _EEPROM_RF_CONFIG_TYPE_MAX@GOTPAGE
Lloh15:
	ldr	x10, [x10, _EEPROM_RF_CONFIG_TYPE_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	w9, w10
	b.le	LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x10, _CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _CSR_HW_IF_CONFIG_REG_POS_PHY_STEP@GOTPAGE
Lloh21:
	ldr	x11, [x11, _CSR_HW_IF_CONFIG_REG_POS_PHY_STEP@GOTPAGEOFF]
	lsl	w9, w9, w10
Lloh22:
	ldr	w10, [x11]
	ldp	w11, w8, [x8, #4]
	lsl	w10, w11, w10
	orr	w9, w10, w9
Lloh23:
	adrp	x10, _CSR_HW_IF_CONFIG_REG_POS_PHY_DASH@GOTPAGE
Lloh24:
	ldr	x10, [x10, _CSR_HW_IF_CONFIG_REG_POS_PHY_DASH@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w3, w9, w8
	ldr	x0, [x19, #8]
	ldr	w1, [x23]
Lloh26:
	adrp	x8, _CSR_HW_IF_CONFIG_REG_MSK_PHY_TYPE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CSR_HW_IF_CONFIG_REG_MSK_PHY_TYPE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh32:
	adrp	x9, _CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_iwl_trans_set_bits_mask
	ldr	x8, [x19, #16]
	ldp	w2, w3, [x8]
	ldr	w4, [x8, #8]
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_INFO
LBB0_3:
	ldr	x0, [x19, #8]
Lloh37:
	adrp	x8, _CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _CSR_HW_IF_CONFIG_REG_BIT_MAC_SI@GOTPAGE
Lloh41:
	ldr	x9, [x9, _CSR_HW_IF_CONFIG_REG_BIT_MAC_SI@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_iwl_set_bit
Lloh43:
	adrp	x8, _APMG_PS_CTRL_REG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _APMG_PS_CTRL_REG@GOTPAGEOFF]
	ldr	x0, [x19, #8]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mvn	w3, w2
	bl	_iwl_set_bits_mask_prph
	ldr	x8, [x19]
	ldr	x1, [x8]
	cbz	x1, LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_HW_IF_CONFIG_REG,4,2       ; @CSR_HW_IF_CONFIG_REG
	.comm	_CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH,4,2 ; @CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH
	.comm	_CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP,4,2 ; @CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP
	.comm	_CSR_HW_IF_CONFIG_REG_POS_MAC_STEP,4,2 ; @CSR_HW_IF_CONFIG_REG_POS_MAC_STEP
	.comm	_CSR_HW_IF_CONFIG_REG_POS_MAC_DASH,4,2 ; @CSR_HW_IF_CONFIG_REG_POS_MAC_DASH
	.comm	_EEPROM_RF_CONFIG_TYPE_MAX,4,2  ; @EEPROM_RF_CONFIG_TYPE_MAX
	.comm	_CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE,4,2 ; @CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE
	.comm	_CSR_HW_IF_CONFIG_REG_POS_PHY_STEP,4,2 ; @CSR_HW_IF_CONFIG_REG_POS_PHY_STEP
	.comm	_CSR_HW_IF_CONFIG_REG_POS_PHY_DASH,4,2 ; @CSR_HW_IF_CONFIG_REG_POS_PHY_DASH
	.comm	_CSR_HW_IF_CONFIG_REG_MSK_PHY_TYPE,4,2 ; @CSR_HW_IF_CONFIG_REG_MSK_PHY_TYPE
	.comm	_CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP,4,2 ; @CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP
	.comm	_CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH,4,2 ; @CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Radio type=0x%x-0x%x-0x%x\n"

	.comm	_CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI,4,2 ; @CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI
	.comm	_CSR_HW_IF_CONFIG_REG_BIT_MAC_SI,4,2 ; @CSR_HW_IF_CONFIG_REG_BIT_MAC_SI
	.comm	_APMG_PS_CTRL_REG,4,2           ; @APMG_PS_CTRL_REG
	.comm	_APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS,4,2 ; @APMG_PS_CTRL_EARLY_PWR_OFF_RESET_DIS
	.no_dead_strip	_iwl_nic_config
.subsections_via_symbols
