	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_hw_set_hw_params        ## -- Begin function il3945_hw_set_hw_params
	.p2align	4, 0x90
_il3945_hw_set_hw_params:               ## @il3945_hw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	64(%rbx), %rdi
	leaq	60(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movl	%eax, 56(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_IL3945_BROADCAST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	48(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$4, (%rbx)
	movq	_IL_RX_BUF_SIZE_3K@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_order
	movl	%eax, 28(%rbx)
	movq	_RX_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_RX_QUEUE_SIZE_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_IL3945_STATION_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_STA_KEY_MAX_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_FH39_RSCSR_CHNL0_WPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_IL39_MAX_UCODE_BEACON_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_IL3945_EXT_BEACON_TIME_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IL3945_BROADCAST_ID,4,2        ## @IL3945_BROADCAST_ID
	.comm	_IL_RX_BUF_SIZE_3K,4,2          ## @IL_RX_BUF_SIZE_3K
	.comm	_RX_QUEUE_SIZE,4,2              ## @RX_QUEUE_SIZE
	.comm	_RX_QUEUE_SIZE_LOG,4,2          ## @RX_QUEUE_SIZE_LOG
	.comm	_IL3945_STATION_COUNT,4,2       ## @IL3945_STATION_COUNT
	.comm	_STA_KEY_MAX_NUM,4,2            ## @STA_KEY_MAX_NUM
	.comm	_FH39_RSCSR_CHNL0_WPTR,4,2      ## @FH39_RSCSR_CHNL0_WPTR
	.comm	_IL39_MAX_UCODE_BEACON_INTERVAL,4,2 ## @IL39_MAX_UCODE_BEACON_INTERVAL
	.comm	_IL3945_EXT_BEACON_TIME_POS,4,2 ## @IL3945_EXT_BEACON_TIME_POS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_hw_set_hw_params        ; -- Begin function il3945_hw_set_hw_params
	.p2align	2
_il3945_hw_set_hw_params:               ; @il3945_hw_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
	mov	w20, #4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x0, [x19, #64]
	add	x2, x19, #60
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	w0, [x19, #56]
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IL3945_BROADCAST_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IL3945_BROADCAST_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #48]
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	str	w20, [x19]
Lloh6:
	adrp	x8, _IL_RX_BUF_SIZE_3K@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IL_RX_BUF_SIZE_3K@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_get_order
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #28]
Lloh9:
	adrp	x8, _RX_QUEUE_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RX_QUEUE_SIZE@GOTPAGEOFF]
Lloh11:
	adrp	x9, _RX_QUEUE_SIZE_LOG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RX_QUEUE_SIZE_LOG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
Lloh15:
	adrp	x8, _IL3945_STATION_COUNT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IL3945_STATION_COUNT@GOTPAGEOFF]
Lloh17:
	adrp	x9, _STA_KEY_MAX_NUM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _STA_KEY_MAX_NUM@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	str	w9, [x19, #40]
Lloh20:
	adrp	x9, _FH39_RSCSR_CHNL0_WPTR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FH39_RSCSR_CHNL0_WPTR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
Lloh24:
	adrp	x8, _IL39_MAX_UCODE_BEACON_INTERVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IL39_MAX_UCODE_BEACON_INTERVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _IL3945_EXT_BEACON_TIME_POS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IL3945_EXT_BEACON_TIME_POS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	b	LBB0_3
LBB0_2:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh22
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IL3945_BROADCAST_ID,4,2        ; @IL3945_BROADCAST_ID
	.comm	_IL_RX_BUF_SIZE_3K,4,2          ; @IL_RX_BUF_SIZE_3K
	.comm	_RX_QUEUE_SIZE,4,2              ; @RX_QUEUE_SIZE
	.comm	_RX_QUEUE_SIZE_LOG,4,2          ; @RX_QUEUE_SIZE_LOG
	.comm	_IL3945_STATION_COUNT,4,2       ; @IL3945_STATION_COUNT
	.comm	_STA_KEY_MAX_NUM,4,2            ; @STA_KEY_MAX_NUM
	.comm	_FH39_RSCSR_CHNL0_WPTR,4,2      ; @FH39_RSCSR_CHNL0_WPTR
	.comm	_IL39_MAX_UCODE_BEACON_INTERVAL,4,2 ; @IL39_MAX_UCODE_BEACON_INTERVAL
	.comm	_IL3945_EXT_BEACON_TIME_POS,4,2 ; @IL3945_EXT_BEACON_TIME_POS
.subsections_via_symbols
