	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_add_int_sta_common
_iwl_mvm_add_int_sta_common:            ## @iwl_mvm_add_int_sta_common
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$128, -44(%rbp)
	addq	$8, %rdi
	callq	_lockdep_assert_held
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	8(%r15), %eax
	movl	%eax, -56(%rbp)
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_FW_CMD_ID_AND_COLOR
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
	movq	(%r12), %rdi
	movq	_IWL_UCODE_TLV_API_STA_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%r15), %eax
	movl	%eax, -72(%rbp)
LBB0_2:
	movq	%r12, %rdi
	callq	_iwl_mvm_has_new_tx_api
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	callq	_cpu_to_le32
	movq	%rax, -80(%rbp)
LBB0_4:
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le16
	movl	%eax, -84(%rbp)
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	-88(%rbp), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_memcpy
LBB0_6:
	movq	_ADD_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_iwl_mvm_add_sta_cmd_size
	leaq	-88(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_iwl_mvm_send_cmd_pdu_status
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movl	-44(%rbp), %edx
	movq	_IWL_ADD_STA_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_IWL_DEBUG_INFO
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_IWL_ERR
LBB0_10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_API_STA_TYPE,4,2 ## @IWL_UCODE_TLV_API_STA_TYPE
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ADD_STA,4,2                    ## @ADD_STA
	.comm	_IWL_ADD_STA_STATUS_MASK,4,2    ## @IWL_ADD_STA_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal station added.\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"Add internal station failed, status=0x%x\n"

	.no_dead_strip	_iwl_mvm_add_int_sta_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_add_int_sta_common
_iwl_mvm_add_int_sta_common:            ; @iwl_mvm_add_int_sta_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w8, #128
	str	w8, [sp, #4]
	add	x0, x0, #8
	bl	_lockdep_assert_held
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w8, [x21, #8]
	str	w8, [sp, #40]
	mov	x0, x23
	mov	x1, x22
	bl	_FW_CMD_ID_AND_COLOR
	bl	_cpu_to_le32
	str	x0, [sp, #32]
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _IWL_UCODE_TLV_API_STA_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_STA_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fw_has_api
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21, #4]
	str	w8, [sp, #24]
LBB0_2:
	mov	x0, x19
	bl	_iwl_mvm_has_new_tx_api
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	bl	_cpu_to_le32
	str	x0, [sp, #16]
LBB0_4:
	mov	w0, #65535
	bl	_cpu_to_le16
	str	w0, [sp, #12]
	cbz	x20, LBB0_6
; %bb.5:
	ldr	w0, [sp, #8]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_memcpy
LBB0_6:
Lloh6:
	adrp	x8, _ADD_STA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADD_STA@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_iwl_mvm_add_sta_cmd_size
	mov	x2, x0
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_send_cmd_pdu_status
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	w2, [sp, #4]
Lloh9:
	adrp	x8, _IWL_ADD_STA_STATUS_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IWL_ADD_STA_STATUS_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w2
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.8:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
	mov	w20, #0
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_API_STA_TYPE,4,2 ; @IWL_UCODE_TLV_API_STA_TYPE
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ADD_STA,4,2                    ; @ADD_STA
	.comm	_IWL_ADD_STA_STATUS_MASK,4,2    ; @IWL_ADD_STA_STATUS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal station added.\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"Add internal station failed, status=0x%x\n"

	.no_dead_strip	_iwl_mvm_add_int_sta_common
.subsections_via_symbols
