	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_chip_efuse_enable
_rtw_chip_efuse_enable:                 ## @rtw_chip_efuse_enable
	.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, %r14
	callq	_rtw_hci_setup
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_rtw_mac_power_on
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_rtw_err
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_REG_C2HEVT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_C2H_HW_FEATURE_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rtw_write8
	leaq	4(%r14), %rdi
	callq	_wait_for_completion
	cmpl	$0, (%r14)
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_rtw_download_firmware
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_rtw_err
	movq	%r14, %rdi
	callq	_rtw_mac_power_off
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to setup hci\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to power on mac\n"

	.comm	_REG_C2HEVT,4,2                 ## @REG_C2HEVT
	.comm	_C2H_HW_FEATURE_DUMP,4,2        ## @C2H_HW_FEATURE_DUMP
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"failed to load firmware\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to download firmware\n"

	.no_dead_strip	_rtw_chip_efuse_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_chip_efuse_enable
_rtw_chip_efuse_enable:                 ; @rtw_chip_efuse_enable
	.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
	bl	_rtw_hci_setup
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_rtw_mac_power_on
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_rtw_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh4:
	adrp	x8, _REG_C2HEVT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REG_C2HEVT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _C2H_HW_FEATURE_DUMP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _C2H_HW_FEATURE_DUMP@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtw_write8
	add	x0, x19, #4
	bl	_wait_for_completion
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x19
	bl	_rtw_download_firmware
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.8:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_rtw_err
	mov	x0, x19
	bl	_rtw_mac_power_off
	b	LBB0_5
LBB0_9:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to setup hci\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to power on mac\n"

	.comm	_REG_C2HEVT,4,2                 ; @REG_C2HEVT
	.comm	_C2H_HW_FEATURE_DUMP,4,2        ; @C2H_HW_FEATURE_DUMP
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"failed to load firmware\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to download firmware\n"

	.no_dead_strip	_rtw_chip_efuse_enable
.subsections_via_symbols
