	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_get_rd_port
_mwifiex_get_rd_port:                   ## @mwifiex_get_rd_port
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	32(%rbx), %r13
	movl	(%rbx), %r12d
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	testl	%r12d, (%r13)
	jne	LBB0_4
	jmp	LBB0_12
LBB0_3:
	movq	_CTRL_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_12
LBB0_4:
	cmpq	$0, 16(%rbx)
	movl	(%rbx), %eax
	je	LBB0_7
## %bb.5:
	movq	_CTRL_PORT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_7
## %bb.6:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_CTRL_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_13
LBB0_7:
	movl	4(%rbx), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	btl	%ecx, %eax
	jae	LBB0_12
## %bb.8:
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%rbx)
	movl	%ecx, (%r14)
	movl	4(%rbx), %eax
	incl	%eax
	movl	%eax, 4(%rbx)
	cmpl	8(%rbx), %eax
	jne	LBB0_10
## %bb.9:
	movl	4(%r13), %eax
	movl	%eax, 4(%rbx)
LBB0_10:
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movl	(%rbx), %r9d
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_13
LBB0_12:
	movl	$-1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %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_rd_bitmap=0x%08x\n"

	.comm	_CTRL_PORT_MASK,4,2             ## @CTRL_PORT_MASK
	.comm	_CTRL_PORT,4,2                  ## @CTRL_PORT
L_.str.1:                               ## @.str.1
	.asciz	"data: port=%d mp_rd_bitmap=0x%08x\n"

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

	.no_dead_strip	_mwifiex_get_rd_port
.subsections_via_symbols

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

	.comm	_CTRL_PORT_MASK,4,2             ; @CTRL_PORT_MASK
	.comm	_CTRL_PORT,4,2                  ; @CTRL_PORT
l_.str.1:                               ; @.str.1
	.asciz	"data: port=%d mp_rd_bitmap=0x%08x\n"

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

	.no_dead_strip	_mwifiex_get_rd_port
.subsections_via_symbols
