	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_mcu_cmd_init           ## -- Begin function mt7601u_mcu_cmd_init
	.p2align	4, 0x90
_mt7601u_mcu_cmd_init:                  ## @mt7601u_mcu_cmd_init
	.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	_Q_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_mt7601u_mcu_function_select
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_init_completion
	movq	_MCU_RESP_URB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r15, %rdx
	callq	_mt7601u_usb_alloc_buf
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_mt7601u_usb_free_buf
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_EP_IN_CMD_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_mt7601u_complete_urb@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, (%rsp)
	movq	%r15, %rdi
	movq	%r15, %rcx
	callq	_mt7601u_usb_submit_buf
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_mt7601u_usb_free_buf
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_SELECT,4,2                   ## @Q_SELECT
	.comm	_MCU_RESP_URB_SIZE,4,2          ## @MCU_RESP_URB_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_MT_EP_IN_CMD_RESP,4,2          ## @MT_EP_IN_CMD_RESP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_mt7601u_complete_urb,4,2       ## @mt7601u_complete_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt7601u_mcu_cmd_init           ; -- Begin function mt7601u_mcu_cmd_init
	.p2align	2
_mt7601u_mcu_cmd_init:                  ; @mt7601u_mcu_cmd_init
	.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
Lloh0:
	adrp	x8, _Q_SELECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Q_SELECT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_mt7601u_mcu_function_select
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	add	x20, x19, #4
	mov	x0, x20
	bl	_init_completion
Lloh3:
	adrp	x8, _MCU_RESP_URB_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCU_RESP_URB_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_mt7601u_usb_alloc_buf
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x19
	bl	_mt7601u_usb_free_buf
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _MT_EP_IN_CMD_RESP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_EP_IN_CMD_RESP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _mt7601u_complete_urb@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mt7601u_complete_urb@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x3, x19
	mov	x6, x20
	bl	_mt7601u_usb_submit_buf
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x19
	bl	_mt7601u_usb_free_buf
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_SELECT,4,2                   ; @Q_SELECT
	.comm	_MCU_RESP_URB_SIZE,4,2          ; @MCU_RESP_URB_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_MT_EP_IN_CMD_RESP,4,2          ; @MT_EP_IN_CMD_RESP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_mt7601u_complete_urb,4,2       ; @mt7601u_complete_urb
.subsections_via_symbols
