	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qtnf_cmd_send_add_change_intf
_qtnf_cmd_send_add_change_intf:         ## @qtnf_cmd_send_add_change_intf
	.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	%rcx, %rbx
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	movl	12(%r13), %esi
	movl	%r8d, %edx
	movl	$16, %ecx
	callq	_qtnf_cmd_alloc_new_cmdskb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_qtnf_bus_lock
	movl	%r15d, %eax
	movq	(%r14), %r15
	movl	%eax, (%r15)
	cmpl	$129, %r12d
	je	LBB0_3
## %bb.4:
	cmpl	$128, %r12d
	jne	LBB0_13
## %bb.5:
	movq	_QLINK_IFTYPE_STATION@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	movq	_QLINK_IFTYPE_AP@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	movl	4(%r15), %edi
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rsi
	callq	_ether_addr_copy
	jmp	LBB0_9
LBB0_13:
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movl	12(%r13), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %ecx
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	callq	_eth_zero_addr
LBB0_9:
	movq	(%r13), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rsi
	movl	$8, %ecx
	xorl	%r8d, %r8d
	callq	_qtnf_cmd_send_with_reply
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movl	8(%r13), %edi
	movq	(%rax), %rsi
	callq	_ether_addr_copy
	xorl	%ebx, %ebx
LBB0_11:
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_qtnf_bus_unlock
	movq	-48(%rbp), %rdi
	callq	_consume_skb
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLINK_IFTYPE_AP,4,2            ## @QLINK_IFTYPE_AP
	.comm	_QLINK_IFTYPE_STATION,4,2       ## @QLINK_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIF%u.%u: unsupported type %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qtnf_cmd_send_add_change_intf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qtnf_cmd_send_add_change_intf
_qtnf_cmd_send_add_change_intf:         ; @qtnf_cmd_send_add_change_intf
	.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	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #12]
	mov	x2, x4
	mov	w3, #16
	bl	_qtnf_cmd_alloc_new_cmdskb
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_qtnf_bus_lock
	ldr	x24, [x20]
	str	w23, [x24]
	cmp	w22, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w22, #128
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _QLINK_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLINK_IFTYPE_STATION@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_5:
Lloh5:
	adrp	x8, _QLINK_IFTYPE_AP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLINK_IFTYPE_AP@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x24, #8]
	ldr	w0, [x24, #4]
	cbz	x21, LBB0_9
; %bb.7:
	mov	x1, x21
	bl	_ether_addr_copy
	b	LBB0_10
LBB0_8:
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	ldr	w2, [x19, #12]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x22
	bl	_pr_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_9:
	bl	_eth_zero_addr
LBB0_10:
	ldr	x8, [x19]
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x20
	mov	w3, #8
	mov	x4, #0
	bl	_qtnf_cmd_send_with_reply
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	w0, [x19, #8]
	ldr	x1, [x8]
	bl	_ether_addr_copy
LBB0_12:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_qtnf_bus_unlock
	ldr	x0, [sp, #8]
	bl	_consume_skb
LBB0_13:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLINK_IFTYPE_AP,4,2            ; @QLINK_IFTYPE_AP
	.comm	_QLINK_IFTYPE_STATION,4,2       ; @QLINK_IFTYPE_STATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIF%u.%u: unsupported type %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qtnf_cmd_send_add_change_intf
.subsections_via_symbols
