	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_alloc_bcast_station
_il3945_alloc_bcast_station:            ## @il3945_alloc_bcast_station
	.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	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	_il_bcast_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_il_prep_station
	movq	_IL_INVALID_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_IL_ERR
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_IL_STA_DRIVER_ACTIVE@GOTPCREL(%rip), %rcx
	movq	8(%rbx), %rdx
	movl	(%rdx,%rax,4), %esi
	orl	(%rcx), %esi
	movl	%esi, (%rdx,%rax,4)
	movq	_IL_STA_BCAST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	%esi, (%rdx,%rax,4)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_il_bcast_addr,4,2              ## @il_bcast_addr
	.comm	_IL_INVALID_STATION,8,3         ## @IL_INVALID_STATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to prepare broadcast station\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IL_STA_DRIVER_ACTIVE,4,2       ## @IL_STA_DRIVER_ACTIVE
	.comm	_IL_STA_BCAST,4,2               ## @IL_STA_BCAST
	.no_dead_strip	_il3945_alloc_bcast_station
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il3945_alloc_bcast_station
_il3945_alloc_bcast_station:            ; @il3945_alloc_bcast_station
	.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	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _il_bcast_addr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _il_bcast_addr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	bl	_il_prep_station
Lloh3:
	adrp	x8, _IL_INVALID_STATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IL_INVALID_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_ERR
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _IL_STA_DRIVER_ACTIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IL_STA_DRIVER_ACTIVE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	lsl	x10, x0, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
Lloh14:
	adrp	x11, _IL_STA_BCAST@GOTPAGE
Lloh15:
	ldr	x11, [x11, _IL_STA_BCAST@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_il_bcast_addr,4,2              ; @il_bcast_addr
	.comm	_IL_INVALID_STATION,8,3         ; @IL_INVALID_STATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to prepare broadcast station\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IL_STA_DRIVER_ACTIVE,4,2       ; @IL_STA_DRIVER_ACTIVE
	.comm	_IL_STA_BCAST,4,2               ; @IL_STA_BCAST
	.no_dead_strip	_il3945_alloc_bcast_station
.subsections_via_symbols
