	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hix5hd2_hw_init
_hix5hd2_hw_init:                       ## @hix5hd2_hw_init
	.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	_ENA_PMU_INT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rdi), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movq	_RAW_PMU_INT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel_relaxed
	movq	_BIT_CRC_ERR_PASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REC_FILT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	_MAC_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CONTROL_WORD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	_COL_SLOT_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movq	_TX_RQ_INT_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_QUEUE_TX_BQ_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movq	_RX_BQ_INT_THRESHOLD@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_IN_QUEUE_TH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	_RX_BQ_IN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RX_BQ_IN_TIMEOUT_TH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	_TX_RQ_IN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TX_RQ_IN_TIMEOUT_TH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	_RX_DESC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_DESC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hix5hd2_set_desc_depth
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hix5hd2_set_desc_addr          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_PMU_INT,8,3                ## @ENA_PMU_INT
	.comm	_RAW_PMU_INT,8,3                ## @RAW_PMU_INT
	.comm	_BIT_CRC_ERR_PASS,4,2           ## @BIT_CRC_ERR_PASS
	.comm	_REC_FILT_CONTROL,8,3           ## @REC_FILT_CONTROL
	.comm	_MAC_MAX_FRAME_SIZE,4,2         ## @MAC_MAX_FRAME_SIZE
	.comm	_CONTROL_WORD,8,3               ## @CONTROL_WORD
	.comm	_COL_SLOT_TIME,8,3              ## @COL_SLOT_TIME
	.comm	_RX_BQ_INT_THRESHOLD,4,2        ## @RX_BQ_INT_THRESHOLD
	.comm	_TX_RQ_INT_THRESHOLD,4,2        ## @TX_RQ_INT_THRESHOLD
	.comm	_QUEUE_TX_BQ_SHIFT,4,2          ## @QUEUE_TX_BQ_SHIFT
	.comm	_IN_QUEUE_TH,8,3                ## @IN_QUEUE_TH
	.comm	_RX_BQ_IN_TIMEOUT,4,2           ## @RX_BQ_IN_TIMEOUT
	.comm	_RX_BQ_IN_TIMEOUT_TH,8,3        ## @RX_BQ_IN_TIMEOUT_TH
	.comm	_TX_RQ_IN_TIMEOUT,4,2           ## @TX_RQ_IN_TIMEOUT
	.comm	_TX_RQ_IN_TIMEOUT_TH,8,3        ## @TX_RQ_IN_TIMEOUT_TH
	.comm	_RX_DESC_NUM,4,2                ## @RX_DESC_NUM
	.comm	_TX_DESC_NUM,4,2                ## @TX_DESC_NUM
	.no_dead_strip	_hix5hd2_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hix5hd2_hw_init
_hix5hd2_hw_init:                       ; @hix5hd2_hw_init
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ENA_PMU_INT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENA_PMU_INT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _RAW_PMU_INT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RAW_PMU_INT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel_relaxed
Lloh6:
	adrp	x8, _BIT_CRC_ERR_PASS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIT_CRC_ERR_PASS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _REC_FILT_CONTROL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REC_FILT_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh12:
	adrp	x8, _MAC_MAX_FRAME_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAC_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _CONTROL_WORD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CONTROL_WORD@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _COL_SLOT_TIME@GOTPAGE
Lloh19:
	ldr	x9, [x9, _COL_SLOT_TIME@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
Lloh21:
	adrp	x8, _RX_BQ_INT_THRESHOLD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RX_BQ_INT_THRESHOLD@GOTPAGEOFF]
Lloh23:
	adrp	x9, _TX_RQ_INT_THRESHOLD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TX_RQ_INT_THRESHOLD@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _QUEUE_TX_BQ_SHIFT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _QUEUE_TX_BQ_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh30:
	adrp	x9, _IN_QUEUE_TH@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IN_QUEUE_TH@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh33:
	adrp	x8, _RX_BQ_IN_TIMEOUT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RX_BQ_IN_TIMEOUT@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh36:
	adrp	x9, _RX_BQ_IN_TIMEOUT_TH@GOTPAGE
Lloh37:
	ldr	x9, [x9, _RX_BQ_IN_TIMEOUT_TH@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh39:
	adrp	x8, _TX_RQ_IN_TIMEOUT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TX_RQ_IN_TIMEOUT@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh42:
	adrp	x9, _TX_RQ_IN_TIMEOUT_TH@GOTPAGE
Lloh43:
	ldr	x9, [x9, _TX_RQ_IN_TIMEOUT_TH@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh45:
	adrp	x8, _RX_DESC_NUM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RX_DESC_NUM@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _TX_DESC_NUM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _TX_DESC_NUM@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hix5hd2_set_desc_depth
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hix5hd2_set_desc_addr
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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	_ENA_PMU_INT,8,3                ; @ENA_PMU_INT
	.comm	_RAW_PMU_INT,8,3                ; @RAW_PMU_INT
	.comm	_BIT_CRC_ERR_PASS,4,2           ; @BIT_CRC_ERR_PASS
	.comm	_REC_FILT_CONTROL,8,3           ; @REC_FILT_CONTROL
	.comm	_MAC_MAX_FRAME_SIZE,4,2         ; @MAC_MAX_FRAME_SIZE
	.comm	_CONTROL_WORD,8,3               ; @CONTROL_WORD
	.comm	_COL_SLOT_TIME,8,3              ; @COL_SLOT_TIME
	.comm	_RX_BQ_INT_THRESHOLD,4,2        ; @RX_BQ_INT_THRESHOLD
	.comm	_TX_RQ_INT_THRESHOLD,4,2        ; @TX_RQ_INT_THRESHOLD
	.comm	_QUEUE_TX_BQ_SHIFT,4,2          ; @QUEUE_TX_BQ_SHIFT
	.comm	_IN_QUEUE_TH,8,3                ; @IN_QUEUE_TH
	.comm	_RX_BQ_IN_TIMEOUT,4,2           ; @RX_BQ_IN_TIMEOUT
	.comm	_RX_BQ_IN_TIMEOUT_TH,8,3        ; @RX_BQ_IN_TIMEOUT_TH
	.comm	_TX_RQ_IN_TIMEOUT,4,2           ; @TX_RQ_IN_TIMEOUT
	.comm	_TX_RQ_IN_TIMEOUT_TH,8,3        ; @TX_RQ_IN_TIMEOUT_TH
	.comm	_RX_DESC_NUM,4,2                ; @RX_DESC_NUM
	.comm	_TX_DESC_NUM,4,2                ; @TX_DESC_NUM
	.no_dead_strip	_hix5hd2_hw_init
.subsections_via_symbols
