	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_alloc_device           ## -- Begin function mt7601u_alloc_device
	.p2align	4, 0x90
_mt7601u_alloc_device:                  ## @mt7601u_alloc_device
	.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, %r15
	movq	_mt7601u_ops@GOTPCREL(%rip), %rsi
	movl	$64, %edi
	callq	_ieee80211_alloc_hw
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	(%rax), %rbx
	movq	%r15, 56(%rbx)
	movq	%rax, 48(%rbx)
	leaq	44(%rbx), %rdi
	callq	_mutex_init
	leaq	40(%rbx), %rdi
	callq	_mutex_init
	leaq	36(%rbx), %rdi
	callq	_mutex_init
	leaq	32(%rbx), %rdi
	callq	_mutex_init
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	leaq	24(%rbx), %rdi
	callq	_spin_lock_init
	leaq	20(%rbx), %rdi
	callq	_spin_lock_init
	leaq	16(%rbx), %rdi
	callq	_spin_lock_init
	leaq	12(%rbx), %rdi
	callq	_spin_lock_init
	leaq	8(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	4(%rbx), %rdi
	callq	_skb_queue_head_init
	movq	_WQ_UNBOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_ieee80211_free_hw
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mt7601u_ops,4,2                ## @mt7601u_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mt7601u"

	.comm	_WQ_UNBOUND,4,2                 ## @WQ_UNBOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_alloc_device           ; -- Begin function mt7601u_alloc_device
	.p2align	2
_mt7601u_alloc_device:                  ; @mt7601u_alloc_device
	.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	x21, x0
Lloh0:
	adrp	x1, _mt7601u_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _mt7601u_ops@GOTPAGEOFF]
	mov	w0, #64
	bl	_ieee80211_alloc_hw
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0]
	stp	x0, x21, [x20, #48]
	add	x0, x20, #44
	bl	_mutex_init
	add	x0, x20, #40
	bl	_mutex_init
	add	x0, x20, #36
	bl	_mutex_init
	add	x0, x20, #32
	bl	_mutex_init
	add	x0, x20, #28
	bl	_spin_lock_init
	add	x0, x20, #24
	bl	_spin_lock_init
	add	x0, x20, #20
	bl	_spin_lock_init
	add	x0, x20, #16
	bl	_spin_lock_init
	add	x0, x20, #12
	bl	_spin_lock_init
	add	x0, x20, #8
	mov	w1, #1
	bl	_atomic_set
	add	x0, x20, #4
	bl	_skb_queue_head_init
Lloh2:
	adrp	x8, _WQ_UNBOUND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WQ_UNBOUND@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_alloc_workqueue
	str	w0, [x20]
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_ieee80211_free_hw
LBB0_3:
	mov	x20, #0
LBB0_4:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_mt7601u_ops,4,2                ; @mt7601u_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mt7601u"

	.comm	_WQ_UNBOUND,4,2                 ; @WQ_UNBOUND
.subsections_via_symbols
