	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_mac_sta_add
_iwlagn_mac_sta_add:                    ## @iwlagn_mac_sta_add
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_IWL_MAC80211_GET_DVM
	movq	%rax, %r14
	movq	8(%r12), %r13
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	sete	%r15b
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_INFO
	movq	_IWL_INVALID_STATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	leaq	8(%r13), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$1, (%r13)
LBB0_2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	-44(%rbp), %r9
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movq	%r12, %r8
	callq	_iwl_add_station_common
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_IWL_ERR
	jmp	LBB0_5
LBB0_4:
	movl	-44(%rbp), %eax
	movl	%eax, 4(%r13)
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"proceeding to add station %pM\n"

	.comm	_IWL_INVALID_STATION,4,2        ## @IWL_INVALID_STATION
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
L_.str.1:                               ## @.str.1
	.asciz	"Unable to add station %pM (%d)\n"

	.no_dead_strip	_iwlagn_mac_sta_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_mac_sta_add
_iwlagn_mac_sta_add:                    ; @iwlagn_mac_sta_add
	.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	x19, x2
	mov	x22, x1
	bl	_IWL_MAC80211_GET_DVM
	mov	x20, x0
	ldr	x23, [x19, #8]
	ldp	x8, x24, [x22]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w21, eq
	ldr	w2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_INFO
Lloh5:
	adrp	x8, _IWL_INVALID_STATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_INVALID_STATION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x23, #4]
	add	x0, x23, #8
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x23]
LBB0_2:
	ldr	w1, [x24]
	ldr	w2, [x19]
	add	x5, sp, #12
	mov	x0, x20
	mov	x3, x21
	mov	x4, x19
	bl	_iwl_add_station_common
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w2, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_IWL_ERR
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #12]
	str	w8, [x23, #4]
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"proceeding to add station %pM\n"

	.comm	_IWL_INVALID_STATION,4,2        ; @IWL_INVALID_STATION
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
l_.str.1:                               ; @.str.1
	.asciz	"Unable to add station %pM (%d)\n"

	.no_dead_strip	_iwlagn_mac_sta_add
.subsections_via_symbols
