	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readBSSListRid
_readBSSListRid:                        ## @readBSSListRid
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	testl	%esi, %esi
	je	LBB0_8
## %bb.1:
	cmpl	$1, %esi
	jne	LBB0_7
## %bb.2:
	movq	_FLAG_RADIO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	leaq	8(%r15), %rax
	jmp	LBB0_9
LBB0_4:
	leaq	-40(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_CMD_LISTBSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	24(%r15), %r12
	movq	%r12, %rdi
	callq	_down_interruptible
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	leaq	-40(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_issuecommand
	movq	%r12, %rdi
	callq	_up
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %edi
	callq	_schedule_timeout_uninterruptible
	movq	$0, 16(%r15)
LBB0_7:
	leaq	12(%r15), %rax
LBB0_9:
	movl	(%rax), %esi
	movl	4(%r15), %ecx
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$1, %r8d
	callq	_PC4500_readrid
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_RADIO_MASK,4,2            ## @FLAG_RADIO_MASK
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_CMD_LISTBSS,4,2                ## @CMD_LISTBSS
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_current,8,3                    ## @current
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_readBSSListRid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readBSSListRid
_readBSSListRid:                        ; @readBSSListRid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x0
	cbz	w1, LBB0_4
; %bb.1:
	cmp	w1, #1
	b.ne	LBB0_9
; %bb.2:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _FLAG_RADIO_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAG_RADIO_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	add	x8, x20, #8
	b	LBB0_10
LBB0_5:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh5:
	adrp	x8, _CMD_LISTBSS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_LISTBSS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x21, x20, #24
	mov	x0, x21
	bl	_down_interruptible
	cbz	x0, LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_8:
Lloh10:
	adrp	x8, _current@GOTPAGE
Lloh11:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x20
	bl	_issuecommand
	mov	x0, x21
	bl	_up
Lloh13:
	adrp	x8, _HZ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	add	w0, w8, w8, lsl #1
	bl	_schedule_timeout_uninterruptible
	str	xzr, [x20, #16]
LBB0_9:
	add	x8, x20, #12
LBB0_10:
	ldr	w1, [x8]
	ldr	w3, [x20, #4]
	mov	x0, x20
	mov	x2, x19
	mov	w4, #1
	bl	_PC4500_readrid
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_RADIO_MASK,4,2            ; @FLAG_RADIO_MASK
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_CMD_LISTBSS,4,2                ; @CMD_LISTBSS
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_current,8,3                    ; @current
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_readBSSListRid
.subsections_via_symbols
