	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pno_get_bucket_channels
_brcmf_pno_get_bucket_channels:         ## @brcmf_pno_get_bucket_channels
	.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
	movl	(%rsi), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.1:
	movslq	%ebx, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BRCMF_NUMCHANNELS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %r13d
	movq	_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_brcmf_dbg
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	incq	%r12
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_5:
	movl	%ebx, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r14)
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_NUMCHANNELS,4,2          ## @BRCMF_NUMCHANNELS
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_SCAN,4,2                       ## @SCAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%d] Chan : %u\n"

	.no_dead_strip	_brcmf_pno_get_bucket_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_pno_get_bucket_channels
_brcmf_pno_get_bucket_channels:         ; @brcmf_pno_get_bucket_channels
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x1]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x20, w20
Lloh0:
	adrp	x25, _BRCMF_NUMCHANNELS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BRCMF_NUMCHANNELS@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SCAN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SCAN@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x25]
	cmp	x20, x8
	b.ge	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w23, [x8]
	ldr	w0, [x26]
	mov	x1, x22
	mov	x2, x20
	mov	x3, x23
	bl	_brcmf_dbg
	mov	x0, x23
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	add	x23, x20, #1
	str	w0, [x8, x20, lsl #2]
	add	x24, x24, #1
	ldrsw	x8, [x21]
	mov	x20, x23
	cmp	x24, x8
	b.lt	LBB0_2
; %bb.4:
	mov	x20, x23
	b	LBB0_7
LBB0_5:
	mov	x23, x20
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x20
	bl	_cpu_to_le32
	str	w0, [x19]
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_NUMCHANNELS,4,2          ; @BRCMF_NUMCHANNELS
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_SCAN,4,2                       ; @SCAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%d] Chan : %u\n"

	.no_dead_strip	_brcmf_pno_get_bucket_channels
.subsections_via_symbols
