	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_mac_power_on               ## -- Begin function rtw_mac_power_on
	.p2align	4, 0x90
_rtw_mac_power_on:                      ## @rtw_mac_power_on
	.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_mac_pre_system_cfg
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_rtw_err
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_rtw_mac_power_switch
	movl	%eax, %ebx
	movq	_EALREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rtw_mac_power_switch
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_rtw_mac_power_switch
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_5
LBB0_4:
	testl	%ebx, %ebx
	jne	LBB0_3
LBB0_5:
	movq	%r14, %rdi
	callq	_rtw_mac_init_system_cfg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EALREADY,4,2                   ## @EALREADY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac power on failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_mac_power_on               ; -- Begin function rtw_mac_power_on
	.p2align	2
_rtw_mac_power_on:                      ; @rtw_mac_power_on
	.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_mac_pre_system_cfg
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_rtw_mac_power_switch
Lloh0:
	adrp	x8, _EALREADY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_rtw_mac_power_switch
	mov	x0, x19
	mov	w1, #1
	bl	_rtw_mac_power_switch
LBB0_3:
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_rtw_mac_init_system_cfg
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rtw_err
LBB0_6:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EALREADY,4,2                   ; @EALREADY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac power on failed"

.subsections_via_symbols
