	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_dump_hw_feature
_rtw_dump_hw_feature:                   ## @rtw_dump_hw_feature
	.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
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HW_FEATURE_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_REG_C2HEVT@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_rtw_read8
	movq	_C2H_HW_FEATURE_REPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	leaq	(%rbx,%rax), %rsi
	addq	$2, %rsi
	movq	%r15, %rdi
	callq	_rtw_read8
	movq	%rax, (%r13,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	(%r12), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rtw_write8
	movq	%r13, %rdi
	callq	_GET_EFUSE_HW_CAP_BW
	movq	%rax, %rdi
	callq	_hw_bw_cap_to_bitamp
	movl	%eax, 24(%r15)
	movq	%r13, %rdi
	callq	_GET_EFUSE_HW_CAP_HCI
	movl	%eax, 28(%r15)
	movq	%r13, %rdi
	callq	_GET_EFUSE_HW_CAP_NSS
	movq	%rax, 8(%r15)
	movq	%r13, %rdi
	callq	_GET_EFUSE_HW_CAP_PTCL
	movl	%eax, 20(%r15)
	movq	%r13, %rdi
	callq	_GET_EFUSE_HW_CAP_ANT_NUM
	movl	%eax, 16(%r15)
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_rtw_hw_config_rf_ant_num
	movq	8(%r15), %rax
	movq	_EFUSE_HW_CAP_IGNORE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	movq	%rax, 8(%r15)
LBB0_6:
	movq	_RTW_DBG_EFUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	28(%r15), %ecx
	movl	24(%r15), %r8d
	movl	16(%r15), %ebx
	movl	20(%r15), %r9d
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	pushq	%rax
	pushq	%rbx
	callq	_rtw_dbg
	addq	$16, %rsp
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_rtw_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.8:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_FEATURE_LEN,4,2             ## @HW_FEATURE_LEN
	.comm	_REG_C2HEVT,8,3                 ## @REG_C2HEVT
	.comm	_C2H_HW_FEATURE_REPORT,8,3      ## @C2H_HW_FEATURE_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read hw feature report\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EFUSE_HW_CAP_IGNORE,8,3        ## @EFUSE_HW_CAP_IGNORE
	.comm	_RTW_DBG_EFUSE,4,2              ## @RTW_DBG_EFUSE
L_.str.1:                               ## @.str.1
	.asciz	"hw cap: hci=0x%02x, bw=0x%02x, ptcl=0x%02x, ant_num=%d, nss=%d\n"

	.no_dead_strip	_rtw_dump_hw_feature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_dump_hw_feature
_rtw_dump_hw_feature:                   ; @rtw_dump_hw_feature
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x21, _HW_FEATURE_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HW_FEATURE_LEN@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x22, _REG_C2HEVT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _REG_C2HEVT@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_rtw_read8
Lloh9:
	adrp	x8, _C2H_HW_FEATURE_REPORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _C2H_HW_FEATURE_REPORT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x23, x8
	add	x1, x8, #2
	mov	x0, x19
	bl	_rtw_read8
	str	x0, [x20, x23, lsl #3]
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_rtw_write8
	mov	x0, x20
	bl	_GET_EFUSE_HW_CAP_BW
	bl	_hw_bw_cap_to_bitamp
	str	w0, [x19, #24]
	mov	x0, x20
	bl	_GET_EFUSE_HW_CAP_HCI
	str	w0, [x19, #28]
	mov	x0, x20
	bl	_GET_EFUSE_HW_CAP_NSS
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_GET_EFUSE_HW_CAP_PTCL
	str	w0, [x19, #20]
	mov	x0, x20
	bl	_GET_EFUSE_HW_CAP_ANT_NUM
	mov	x1, x0
	str	w0, [x19, #16]
	mov	x0, x19
	bl	_rtw_hw_config_rf_ant_num
	ldr	x7, [x19, #8]
Lloh12:
	adrp	x8, _EFUSE_HW_CAP_IGNORE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EFUSE_HW_CAP_IGNORE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x7, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	x7, [x19]
	str	x7, [x19, #8]
LBB0_6:
Lloh15:
	adrp	x8, _RTW_DBG_EFUSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTW_DBG_EFUSE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldp	w4, w3, [x19, #24]
	ldp	w6, w5, [x19, #16]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_rtw_dbg
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rtw_err
Lloh22:
	adrp	x8, _EBUSY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #48
	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
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_FEATURE_LEN,4,2             ; @HW_FEATURE_LEN
	.comm	_REG_C2HEVT,8,3                 ; @REG_C2HEVT
	.comm	_C2H_HW_FEATURE_REPORT,8,3      ; @C2H_HW_FEATURE_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read hw feature report\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EFUSE_HW_CAP_IGNORE,8,3        ; @EFUSE_HW_CAP_IGNORE
	.comm	_RTW_DBG_EFUSE,4,2              ; @RTW_DBG_EFUSE
l_.str.1:                               ; @.str.1
	.asciz	"hw cap: hci=0x%02x, bw=0x%02x, ptcl=0x%02x, ant_num=%d, nss=%d\n"

	.no_dead_strip	_rtw_dump_hw_feature
.subsections_via_symbols
