	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_set_hw_params
_il4965_set_hw_params:                  ## @il4965_set_hw_params
	.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	_IL4965_BROADCAST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rdi)
	movq	_RX_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rdi)
	movq	_RX_QUEUE_SIZE_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rdi)
	movq	112(%rdi), %rax
	movq	16(%rax), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_1
## %bb.2:
	movq	_IL_RX_BUF_SIZE_4K@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IL_RX_BUF_SIZE_8K@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_get_order
	movq	%rax, 88(%rbx)
	movq	_IL_MAX_UCODE_BEACON_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	112(%rbx), %rax
	movq	16(%rax), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_5
## %bb.4:
	movq	_IL_SKU_N@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, 24(%rax)
LBB0_5:
	movq	(%rcx), %rcx
	movq	_IL_MIN_NUM_QUEUES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_7
## %bb.6:
	movq	_IL49_NUM_QUEUES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_7
## %bb.8:
	movl	%ecx, (%rax)
	jmp	LBB0_9
LBB0_7:
	movl	(%rax), %ecx
LBB0_9:
	movl	%ecx, (%rbx)
	movq	_FH49_TCSR_CHNL_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	shll	$2, %ecx
	movl	%ecx, 4(%rbx)
	movl	$4, 8(%rbx)
	movq	_IL4965_STATION_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_IL49_RTC_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_IL49_RTC_INST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_BSM_SRAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, 60(%rbx)
	movq	_FH49_RSCSR_CHNL0_WPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	112(%rbx), %rax
	movl	8(%rax), %edi
	callq	_il4965_num_of_ant
	movq	%rax, 48(%rbx)
	movq	112(%rbx), %rax
	movl	4(%rax), %edi
	callq	_il4965_num_of_ant
	movq	%rax, 40(%rbx)
	movq	112(%rbx), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 32(%rbx)
	movl	4(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_CT_KILL_THRESHOLD_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CELSIUS_TO_KELVIN
	movl	%eax, 24(%rbx)
	movq	_il4965_sensitivity@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_IL4965_EXT_BEACON_TIME_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IL4965_BROADCAST_ID,4,2        ## @IL4965_BROADCAST_ID
	.comm	_RX_QUEUE_SIZE,4,2              ## @RX_QUEUE_SIZE
	.comm	_RX_QUEUE_SIZE_LOG,4,2          ## @RX_QUEUE_SIZE_LOG
	.comm	_IL_RX_BUF_SIZE_8K,4,2          ## @IL_RX_BUF_SIZE_8K
	.comm	_IL_RX_BUF_SIZE_4K,4,2          ## @IL_RX_BUF_SIZE_4K
	.comm	_IL_MAX_UCODE_BEACON_INTERVAL,4,2 ## @IL_MAX_UCODE_BEACON_INTERVAL
	.comm	_IL_SKU_N,4,2                   ## @IL_SKU_N
	.comm	_IL_MIN_NUM_QUEUES,8,3          ## @IL_MIN_NUM_QUEUES
	.comm	_IL49_NUM_QUEUES,8,3            ## @IL49_NUM_QUEUES
	.comm	_FH49_TCSR_CHNL_NUM,4,2         ## @FH49_TCSR_CHNL_NUM
	.comm	_IL4965_STATION_COUNT,4,2       ## @IL4965_STATION_COUNT
	.comm	_IL49_RTC_DATA_SIZE,4,2         ## @IL49_RTC_DATA_SIZE
	.comm	_IL49_RTC_INST_SIZE,4,2         ## @IL49_RTC_INST_SIZE
	.comm	_BSM_SRAM_SIZE,4,2              ## @BSM_SRAM_SIZE
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_FH49_RSCSR_CHNL0_WPTR,4,2      ## @FH49_RSCSR_CHNL0_WPTR
	.comm	_CT_KILL_THRESHOLD_LEGACY,4,2   ## @CT_KILL_THRESHOLD_LEGACY
	.comm	_il4965_sensitivity,4,2         ## @il4965_sensitivity
	.comm	_IL4965_EXT_BEACON_TIME_POS,4,2 ## @IL4965_EXT_BEACON_TIME_POS
	.no_dead_strip	_il4965_set_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_set_hw_params
_il4965_set_hw_params:                  ; @il4965_set_hw_params
	.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, _IL4965_BROADCAST_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IL4965_BROADCAST_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #104]
Lloh3:
	adrp	x8, _RX_QUEUE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_QUEUE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RX_QUEUE_SIZE_LOG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RX_QUEUE_SIZE_LOG@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #96]
	ldr	x8, [x0, #112]
	ldr	x8, [x8, #16]
Lloh9:
	adrp	x9, _IL_RX_BUF_SIZE_4K@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IL_RX_BUF_SIZE_4K@GOTPAGEOFF]
	ldr	x8, [x8, #16]
Lloh11:
	adrp	x10, _IL_RX_BUF_SIZE_8K@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IL_RX_BUF_SIZE_8K@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	bl	_get_order
Lloh13:
	adrp	x8, _IL_MAX_UCODE_BEACON_INTERVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IL_MAX_UCODE_BEACON_INTERVAL@GOTPAGEOFF]
	str	x0, [x19, #88]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #84]
	ldr	x8, [x19, #112]
	ldr	x9, [x8, #16]
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_2
; %bb.1:
Lloh16:
	adrp	x10, _IL_SKU_N@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IL_SKU_N@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	ldr	w11, [x8, #24]
	bic	w10, w11, w10
	str	w10, [x8, #24]
LBB0_2:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _IL_MIN_NUM_QUEUES@GOTPAGE
Lloh20:
	ldr	x10, [x10, _IL_MIN_NUM_QUEUES@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.lt	LBB0_5
; %bb.3:
Lloh22:
	adrp	x10, _IL49_NUM_QUEUES@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IL49_NUM_QUEUES@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x9, x10
	b.gt	LBB0_5
; %bb.4:
	str	w9, [x8]
	b	LBB0_6
LBB0_5:
	ldr	w9, [x8]
LBB0_6:
Lloh25:
	adrp	x8, _FH49_TCSR_CHNL_NUM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FH49_TCSR_CHNL_NUM@GOTPAGEOFF]
	lsl	w10, w9, #2
	stp	w9, w10, [x19]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #80]
	mov	w8, #4
Lloh28:
	adrp	x9, _IL4965_STATION_COUNT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IL4965_STATION_COUNT@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh30:
	ldr	w8, [x9]
Lloh31:
	adrp	x9, _IL49_RTC_DATA_SIZE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IL49_RTC_DATA_SIZE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #72]
Lloh34:
	adrp	x8, _IL49_RTC_INST_SIZE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IL49_RTC_INST_SIZE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _BSM_SRAM_SIZE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _BSM_SRAM_SIZE@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #64]
Lloh40:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_BIT
Lloh43:
	adrp	x8, _FH49_RSCSR_CHNL0_WPTR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _FH49_RSCSR_CHNL0_WPTR@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #56]
	ldr	x8, [x19, #112]
	ldr	w0, [x8, #8]
	bl	_il4965_num_of_ant
	str	x0, [x19, #48]
	ldr	x8, [x19, #112]
	ldr	w0, [x8, #4]
	bl	_il4965_num_of_ant
	str	x0, [x19, #40]
	ldr	x8, [x19, #112]
	ldur	d0, [x8, #4]
	stur	d0, [x19, #28]
Lloh46:
	adrp	x8, _CT_KILL_THRESHOLD_LEGACY@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CT_KILL_THRESHOLD_LEGACY@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	bl	_CELSIUS_TO_KELVIN
Lloh49:
	adrp	x8, _il4965_sensitivity@GOTPAGE
Lloh50:
	ldr	x8, [x8, _il4965_sensitivity@GOTPAGEOFF]
	str	w0, [x19, #24]
	str	x8, [x19, #16]
Lloh51:
	adrp	x8, _IL4965_EXT_BEACON_TIME_POS@GOTPAGE
Lloh52:
	ldr	x8, [x8, _IL4965_EXT_BEACON_TIME_POS@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IL4965_BROADCAST_ID,4,2        ; @IL4965_BROADCAST_ID
	.comm	_RX_QUEUE_SIZE,4,2              ; @RX_QUEUE_SIZE
	.comm	_RX_QUEUE_SIZE_LOG,4,2          ; @RX_QUEUE_SIZE_LOG
	.comm	_IL_RX_BUF_SIZE_8K,4,2          ; @IL_RX_BUF_SIZE_8K
	.comm	_IL_RX_BUF_SIZE_4K,4,2          ; @IL_RX_BUF_SIZE_4K
	.comm	_IL_MAX_UCODE_BEACON_INTERVAL,4,2 ; @IL_MAX_UCODE_BEACON_INTERVAL
	.comm	_IL_SKU_N,4,2                   ; @IL_SKU_N
	.comm	_IL_MIN_NUM_QUEUES,8,3          ; @IL_MIN_NUM_QUEUES
	.comm	_IL49_NUM_QUEUES,8,3            ; @IL49_NUM_QUEUES
	.comm	_FH49_TCSR_CHNL_NUM,4,2         ; @FH49_TCSR_CHNL_NUM
	.comm	_IL4965_STATION_COUNT,4,2       ; @IL4965_STATION_COUNT
	.comm	_IL49_RTC_DATA_SIZE,4,2         ; @IL49_RTC_DATA_SIZE
	.comm	_IL49_RTC_INST_SIZE,4,2         ; @IL49_RTC_INST_SIZE
	.comm	_BSM_SRAM_SIZE,4,2              ; @BSM_SRAM_SIZE
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_FH49_RSCSR_CHNL0_WPTR,4,2      ; @FH49_RSCSR_CHNL0_WPTR
	.comm	_CT_KILL_THRESHOLD_LEGACY,4,2   ; @CT_KILL_THRESHOLD_LEGACY
	.comm	_il4965_sensitivity,4,2         ; @il4965_sensitivity
	.comm	_IL4965_EXT_BEACON_TIME_POS,4,2 ; @IL4965_EXT_BEACON_TIME_POS
	.no_dead_strip	_il4965_set_hw_params
.subsections_via_symbols
