	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_get_wr_port_data
_mwifiex_get_wr_port_data:              ## @mwifiex_get_wr_port_data
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	24(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r14d
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r13d, %r13d
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	testl	%r14d, 4(%rbx)
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movl	8(%rbx), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	btl	%ecx, %eax
	jae	LBB0_10
## %bb.3:
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%rbx)
	movl	%ecx, (%r15)
	movl	8(%rbx), %r8d
	incl	%r8d
	movl	%r8d, 8(%rbx)
	cmpl	12(%rbx), %r8d
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movl	%r8d, 8(%rbx)
LBB0_5:
	cmpq	$0, 16(%rbx)
	movl	(%r15), %ecx
	je	LBB0_8
## %bb.6:
	movq	_CTRL_PORT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	$-1, %r13d
	jmp	LBB0_9
LBB0_1:
	movl	$1, (%r12)
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_10:
	movl	$1, (%r12)
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_8:
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r9d
	leaq	L_.str.2(%rip), %rdx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_mwifiex_dbg
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data: mp_wr_bitmap=0x%08x\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CTRL_PORT,4,2                  ## @CTRL_PORT
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"invalid data port=%d cur port=%d mp_wr_bitmap=0x%08x -> 0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"data: port=%d mp_wr_bitmap=0x%08x -> 0x%08x\n"

	.no_dead_strip	_mwifiex_get_wr_port_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_get_wr_port_data
_mwifiex_get_wr_port_data:              ; @mwifiex_get_wr_port_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	x24, [x22, #24]
	ldr	w20, [x22]
Lloh0:
	adrp	x23, _DATA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DATA@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	bl	_mwifiex_dbg
	ldr	w8, [x22, #4]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.1:
	ldr	w9, [x22]
	ldr	w8, [x22, #8]
	mov	w10, #1
	lsl	w11, w10, w8
	tst	w11, w9
	b.eq	LBB0_8
; %bb.2:
	bic	w9, w9, w11
	str	w9, [x22]
	str	w8, [x21]
	ldp	w8, w9, [x22, #8]
	add	w8, w8, #1
	str	w8, [x22, #8]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x24]
	str	w8, [x22, #8]
LBB0_4:
	ldr	x9, [x22, #16]
	ldr	w3, [x21]
	cbz	x9, LBB0_10
; %bb.5:
Lloh4:
	adrp	x9, _CTRL_PORT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CTRL_PORT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w3, w9
	b.ne	LBB0_10
; %bb.6:
Lloh7:
	adrp	x9, _ERROR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	ldr	w9, [x22]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x9, [sp, #8]
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	w0, #-1
	b	LBB0_11
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
	str	w10, [x19]
LBB0_9:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	ldr	w1, [x23]
	ldr	w8, [x22]
	stp	x20, x8, [sp]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data: mp_wr_bitmap=0x%08x\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CTRL_PORT,4,2                  ; @CTRL_PORT
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"invalid data port=%d cur port=%d mp_wr_bitmap=0x%08x -> 0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"data: port=%d mp_wr_bitmap=0x%08x -> 0x%08x\n"

	.no_dead_strip	_mwifiex_get_wr_port_data
.subsections_via_symbols
