	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76u_check_sg
_mt76u_check_sg:                        ## @mt76u_check_sg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edi
	callq	_to_usb_device
	movq	%rax, %rcx
	movq	_disable_usb_sg@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	$0, (%rdx)
	je	LBB0_1
LBB0_4:
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rcx), %rdx
	cmpq	$0, (%rdx)
	jle	LBB0_4
## %bb.2:
	movl	$1, %eax
	cmpq	$0, 8(%rdx)
	jne	LBB0_4
## %bb.3:
	movq	(%rcx), %rcx
	movq	_USB_SPEED_WIRELESS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	sete	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_disable_usb_sg,4,2             ## @disable_usb_sg
	.comm	_USB_SPEED_WIRELESS,8,3         ## @USB_SPEED_WIRELESS
	.no_dead_strip	_mt76u_check_sg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76u_check_sg
_mt76u_check_sg:                        ; @mt76u_check_sg
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w0, [x0]
	bl	_to_usb_device
Lloh0:
	adrp	x8, _disable_usb_sg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _disable_usb_sg@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
	cmp	x9, #1
	b.lt	LBB0_1
; %bb.3:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _USB_SPEED_WIRELESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_SPEED_WIRELESS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_disable_usb_sg,4,2             ; @disable_usb_sg
	.comm	_USB_SPEED_WIRELESS,8,3         ; @USB_SPEED_WIRELESS
	.no_dead_strip	_mt76u_check_sg
.subsections_via_symbols
