	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_setxband
_brcms_c_setxband:                      ## @brcms_c_setxband
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	36(%rdi), %edx
	movl	40(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	callq	_brcms_dbg_mac80211
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movl	(%rcx,%r14,4), %ecx
	movl	%ecx, 32(%rbx)
	movq	(%rax), %rcx
	movl	(%rcx,%r14,4), %ecx
	movl	%ecx, 8(%rax)
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%rbx)
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	xorl	%edx, %edx
	testq	%r14, %r14
	movq	_SICF_GMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmovel	%esi, %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_brcms_b_core_ioctl             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d: bandunit %d\n"

	.comm	_SICF_GMODE,4,2                 ## @SICF_GMODE
	.no_dead_strip	_brcms_c_setxband
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_setxband
_brcms_c_setxband:                      ; @brcms_c_setxband
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #40]
	ldr	w2, [x19, #36]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_brcms_dbg_mac80211
	ldr	x8, [x19, #24]
	lsl	x9, x20, #2
	ldr	w8, [x8, x9]
	str	w8, [x19, #32]
	ldp	x10, x8, [x19, #8]
	ldr	x11, [x8]
	ldr	w9, [x11, x9]
	str	w9, [x8, #8]
	cbz	x10, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh2:
	adrp	x8, _SICF_GMODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SICF_GMODE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	cmp	x20, #0
	csel	w2, w1, wzr, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_brcms_b_core_ioctl
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d: bandunit %d\n"

	.comm	_SICF_GMODE,4,2                 ; @SICF_GMODE
	.no_dead_strip	_brcms_c_setxband
.subsections_via_symbols
