	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_send_add_key          ## -- Begin function qtnf_cmd_send_add_key
	.p2align	4, 0x90
_qtnf_cmd_send_add_key:                 ## @qtnf_cmd_send_add_key
	.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	%r8, %r15
	movq	%rcx, %r12
	movl	%edx, %ebx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	movl	8(%r13), %esi
	movq	_QLINK_CMD_ADD_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %ecx
	callq	_qtnf_cmd_alloc_new_cmdskb
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_qtnf_bus_lock
	movq	(%r14), %rbx
	movl	12(%rbx), %edi
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	movq	%r12, %rsi
	callq	_ether_addr_copy
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_5:
	callq	_eth_broadcast_addr
LBB0_6:
	movl	32(%r15), %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	24(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.7:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	jle	LBB0_9
## %bb.8:
	movq	_QTN_TLV_ID_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qtnf_cmd_skb_put_tlv_arr
LBB0_9:
	movq	16(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.10:
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	jle	LBB0_12
## %bb.11:
	movq	_QTN_TLV_ID_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qtnf_cmd_skb_put_tlv_arr
LBB0_12:
	movq	(%r13), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_qtnf_cmd_send
	movl	%eax, %ebx
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_qtnf_bus_unlock
	movl	%ebx, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLINK_CMD_ADD_KEY,4,2          ## @QLINK_CMD_ADD_KEY
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QTN_TLV_ID_KEY,4,2             ## @QTN_TLV_ID_KEY
	.comm	_QTN_TLV_ID_SEQ,4,2             ## @QTN_TLV_ID_SEQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_send_add_key          ; -- Begin function qtnf_cmd_send_add_key
	.p2align	2
_qtnf_cmd_send_add_key:                 ; @qtnf_cmd_send_add_key
	.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	x21, x4
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #8]
Lloh0:
	adrp	x8, _QLINK_CMD_ADD_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLINK_CMD_ADD_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w3, #16
	bl	_qtnf_cmd_alloc_new_cmdskb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_qtnf_bus_lock
	ldr	x25, [x20]
	ldr	w0, [x25, #12]
	cbz	x24, LBB0_4
; %bb.2:
	mov	x1, x24
	bl	_ether_addr_copy
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_4:
	bl	_eth_broadcast_addr
LBB0_5:
	ldr	w0, [x21, #32]
	bl	_cpu_to_le32
	stp	w23, w0, [x25, #4]
	str	w22, [x25]
	ldr	x2, [x21, #24]
	cbz	x2, LBB0_8
; %bb.6:
	ldr	x3, [x21]
	cmp	x3, #1
	b.lt	LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _QTN_TLV_ID_KEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QTN_TLV_ID_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_qtnf_cmd_skb_put_tlv_arr
LBB0_8:
	ldr	x2, [x21, #16]
	cbz	x2, LBB0_11
; %bb.9:
	ldr	x3, [x21, #8]
	cmp	x3, #1
	b.lt	LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _QTN_TLV_ID_SEQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QTN_TLV_ID_SEQ@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_qtnf_cmd_skb_put_tlv_arr
LBB0_11:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_qtnf_cmd_send
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_qtnf_bus_unlock
	mov	x0, x20
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QLINK_CMD_ADD_KEY,4,2          ; @QLINK_CMD_ADD_KEY
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QTN_TLV_ID_KEY,4,2             ; @QTN_TLV_ID_KEY
	.comm	_QTN_TLV_ID_SEQ,4,2             ; @QTN_TLV_ID_SEQ
.subsections_via_symbols
