	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00lib_start                ## -- Begin function rt2x00lib_start
	.p2align	4, 0x90
_rt2x00lib_start:                       ## @rt2x00lib_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DEVICE_STATE_STARTED@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_DEVICE_STATE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	32(%r14), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	%r14, %rdi
	callq	_rt2x00lib_stop
LBB0_2:
	movq	%r14, %rdi
	callq	_rt2x00lib_load_firmware
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_rt2x00lib_initialize
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movq	$0, 24(%r14)
	movq	%r14, %rdi
	callq	_rt2x00lib_enable_radio
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_set_bit
	xorl	%ebx, %ebx
LBB0_6:
	movq	_DEVICE_STATE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_STATE_STARTED,4,2       ## @DEVICE_STATE_STARTED
	.comm	_DEVICE_STATE_RESET,4,2         ## @DEVICE_STATE_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00lib_start                ; -- Begin function rt2x00lib_start
	.p2align	2
_rt2x00lib_start:                       ; @rt2x00lib_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _DEVICE_STATE_STARTED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DEVICE_STATE_STARTED@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_test_bit
Lloh2:
	adrp	x21, _DEVICE_STATE_RESET@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DEVICE_STATE_RESET@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_set_bit
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_rt2x00lib_stop
LBB0_2:
	mov	x0, x19
	bl	_rt2x00lib_load_firmware
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_rt2x00lib_initialize
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.4:
	stp	xzr, xzr, [x19, #8]
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_rt2x00lib_enable_radio
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_set_bit
LBB0_6:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_clear_bit
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_STATE_STARTED,4,2       ; @DEVICE_STATE_STARTED
	.comm	_DEVICE_STATE_RESET,4,2         ; @DEVICE_STATE_RESET
.subsections_via_symbols
