	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_usb_port_resync
_mwifiex_usb_port_resync:               ## @mwifiex_usb_port_resync
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	24(%rdi), %r8
	movq	_MWIFIEX_USB_EP_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	cmpq	$0, 16(%rdi)
	movl	(%rdi), %edx
	je	LBB0_14
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_10
## %bb.2:
	movq	8(%rdi), %rcx
	movq	_MWIFIEX_BSS_ROLE_UAP@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_MWIFIEX_BSS_ROLE_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, 8(%rdi)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rdx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdi), %rsi
	cmpq	%r11, %rsi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 24(%rdi)
	je	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r10, %rsi
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%rdi)
	jne	LBB0_9
	jmp	LBB0_8
LBB0_10:
	movq	_MWIFIEX_TX_DATA_PORT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.11:
	movq	(%r8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rcx)
	incq	%rdx
	movslq	(%rax), %rsi
	addq	$16, %rcx
	cmpq	%rsi, %rdx
	jl	LBB0_12
	jmp	LBB0_13
LBB0_14:
	testl	%edx, %edx
	jle	LBB0_30
## %bb.15:
	movq	8(%rdi), %rcx
	movq	_MWIFIEX_BSS_ROLE_UAP@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_MWIFIEX_BSS_ROLE_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	xorl	%esi, %esi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rsi
	cmpq	%rsi, %rdx
	je	LBB0_23
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rax), %rbx
	cmpq	%r10, %rbx
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	$0, 24(%rax)
	jne	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpq	%r11, %rbx
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	$0, 16(%rax)
	je	LBB0_22
LBB0_21:
	movq	8(%rax), %r9
LBB0_23:
	movq	8(%rdi), %rdi
	leaq	-1(%rdx), %rax
	movl	%edx, %esi
	andl	$3, %esi
	cmpq	$3, %rax
	jae	LBB0_33
## %bb.24:
	xorl	%ecx, %ecx
LBB0_25:
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.26:
	leaq	(%rdi,%rcx,8), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	incq	%rcx
	cmpq	%rcx, %rsi
	je	LBB0_30
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%r9, 8(%rdx)
	jmp	LBB0_29
LBB0_30:
	movq	_MWIFIEX_TX_DATA_PORT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.31:
	movq	(%r8), %rcx
	addq	$8, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	cmpq	(%rcx), %r9
	setne	%sil
	movl	%esi, -8(%rcx)
	incq	%rdx
	movslq	(%rax), %rsi
	addq	$16, %rcx
	cmpq	%rsi, %rdx
	jl	LBB0_32
LBB0_13:
	popq	%rbx
	popq	%rbp
	retq
LBB0_33:
	andl	$-4, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_34 Depth=1
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	je	LBB0_25
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%r9, 8(%rax)
LBB0_36:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	8(%rdi,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%r9, 8(%rax)
LBB0_38:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	16(%rdi,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%r9, 8(%rax)
LBB0_40:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	24(%rdi,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%r9, 8(%rax)
	jmp	LBB0_42
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_USB_EP_DATA,8,3        ## @MWIFIEX_USB_EP_DATA
	.comm	_MWIFIEX_BSS_ROLE_UAP,8,3       ## @MWIFIEX_BSS_ROLE_UAP
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ## @MWIFIEX_BSS_ROLE_STA
	.comm	_MWIFIEX_TX_DATA_PORT,4,2       ## @MWIFIEX_TX_DATA_PORT
	.no_dead_strip	_mwifiex_usb_port_resync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_usb_port_resync
_mwifiex_usb_port_resync:               ; @mwifiex_usb_port_resync
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MWIFIEX_USB_EP_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_USB_EP_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x11, x9, [x0, #16]
	ldr	w10, [x0]
	cmp	w10, #1
	cbz	x11, LBB0_13
; %bb.1:
	b.lt	LBB0_10
; %bb.2:
	ldr	x11, [x0, #8]
Lloh3:
	adrp	x12, _MWIFIEX_BSS_ROLE_UAP@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MWIFIEX_BSS_ROLE_UAP@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
Lloh6:
	adrp	x13, _MWIFIEX_BSS_ROLE_STA@GOTPAGE
Lloh7:
	ldr	x13, [x13, _MWIFIEX_BSS_ROLE_STA@GOTPAGEOFF]
Lloh8:
	ldr	x13, [x13]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x14, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, #8
	subs	x10, x10, #1
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x11]
	cbz	x14, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x15, [x14]
	cmp	x15, x12
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x16, [x14, #24]
	cbz	x16, LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x15, x13
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x15, [x14, #16]
	cbnz	x15, LBB0_4
	b	LBB0_3
LBB0_10:
Lloh9:
	adrp	x8, _MWIFIEX_TX_DATA_PORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MWIFIEX_TX_DATA_PORT@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_29
; %bb.11:
	mov	x10, #0
	ldr	x9, [x9]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [x9], #16
	add	x10, x10, #1
	ldrsw	x11, [x8]
	cmp	x10, x11
	b.lt	LBB0_12
	b	LBB0_29
LBB0_13:
	b.lt	LBB0_26
; %bb.14:
Lloh11:
	adrp	x12, _MWIFIEX_BSS_ROLE_UAP@GOTPAGE
Lloh12:
	ldr	x12, [x12, _MWIFIEX_BSS_ROLE_UAP@GOTPAGEOFF]
	ldr	x11, [x0, #8]
Lloh13:
	ldr	x12, [x12]
Lloh14:
	adrp	x13, _MWIFIEX_BSS_ROLE_STA@GOTPAGE
Lloh15:
	ldr	x13, [x13, _MWIFIEX_BSS_ROLE_STA@GOTPAGEOFF]
Lloh16:
	ldr	x13, [x13]
	mov	x14, x10
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x11, x11, #8
	subs	x14, x14, #1
	b.eq	LBB0_22
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x11]
	cbz	x15, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x16, [x15]
	cmp	x16, x12
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x17, [x15, #24]
	cbnz	x17, LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	x16, x13
	b.ne	LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x16, [x15, #16]
	cbz	x16, LBB0_15
LBB0_21:
	ldr	x8, [x15, #8]
LBB0_22:
	ldr	x11, [x0, #8]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x11, x11, #8
	subs	x10, x10, #1
	b.eq	LBB0_26
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cbz	x12, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	str	x8, [x12, #8]
	b	LBB0_23
LBB0_26:
Lloh17:
	adrp	x10, _MWIFIEX_TX_DATA_PORT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MWIFIEX_TX_DATA_PORT@GOTPAGEOFF]
	ldr	w11, [x10]
	cmp	w11, #1
	b.lt	LBB0_29
; %bb.27:
	mov	x11, #0
	ldr	x9, [x9]
	add	x9, x9, #8
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9]
	cmp	x8, x12
	cset	w12, ne
	stur	w12, [x9, #-8]
	add	x11, x11, #1
	ldrsw	x12, [x10]
	add	x9, x9, #16
	cmp	x11, x12
	b.lt	LBB0_28
LBB0_29:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_USB_EP_DATA,8,3        ; @MWIFIEX_USB_EP_DATA
	.comm	_MWIFIEX_BSS_ROLE_UAP,8,3       ; @MWIFIEX_BSS_ROLE_UAP
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ; @MWIFIEX_BSS_ROLE_STA
	.comm	_MWIFIEX_TX_DATA_PORT,4,2       ; @MWIFIEX_TX_DATA_PORT
	.no_dead_strip	_mwifiex_usb_port_resync
.subsections_via_symbols
