	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_send_connect          ## -- Begin function qtnf_cmd_send_connect
	.p2align	4, 0x90
_qtnf_cmd_send_connect:                 ## @qtnf_cmd_send_connect
	.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	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	movl	12(%rbx), %esi
	movq	_QLINK_CMD_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$144, %ecx
	callq	_qtnf_cmd_alloc_new_cmdskb
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	movl	136(%r15), %edi
	movl	8(%rbx), %esi
	callq	_ether_addr_copy
	movl	132(%r12), %esi
	movl	132(%r15), %edi
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	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_zero_addr
LBB0_6:
	movl	128(%r12), %esi
	movl	128(%r15), %edi
	testl	%esi, %esi
	je	LBB0_8
## %bb.7:
	callq	_ether_addr_copy
	jmp	LBB0_9
LBB0_8:
	callq	_eth_zero_addr
LBB0_9:
	movq	(%r12), %rax
	movq	_SHRT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$-1, %ecx
	movl	%eax, %edi
	cmovgl	%ecx, %edi
	testq	%rax, %rax
	cmovsl	%ecx, %edi
	callq	_cpu_to_le16
	movq	%rax, 120(%r15)
	movl	8(%r12), %eax
	movq	_ASSOC_REQ_DISABLE_HT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_11
## %bb.10:
	movq	_QLINK_STA_CONNECT_DISABLE_HT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_11:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_ASSOC_REQ_DISABLE_VHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	andl	%eax, %edi
	je	LBB0_13
## %bb.12:
	movq	_QLINK_STA_CONNECT_DISABLE_VHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_13:
	orl	%ecx, %edi
	movq	_ASSOC_REQ_USE_RRM@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_15
## %bb.14:
	movq	_QLINK_STA_CONNECT_USE_RRM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	orl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 112(%r15)
	leaq	104(%r15), %rdi
	leaq	124(%r12), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	100(%r15), %rdi
	leaq	120(%r12), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	96(%r15), %rdi
	leaq	116(%r12), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	92(%r15), %rdi
	leaq	112(%r12), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	108(%r12), %eax
	movl	%eax, 88(%r15)
	movl	104(%r12), %eax
	movl	%eax, 80(%r15)
	xorl	%eax, %eax
	cmpl	$0, 100(%r12)
	setne	%al
	movl	%eax, 8(%r15)
	movl	96(%r12), %eax
	movl	%eax, (%r15)
	movl	88(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 72(%r15)
	movl	84(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 64(%r15)
	movl	80(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 56(%r15)
	movq	_QLINK_MAX_NR_CIPHER_SUITES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_18
## %bb.16:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	72(%r12), %rax
	movl	(%rax,%r14,4), %edi
	callq	_cpu_to_le32
	movq	48(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jl	LBB0_17
LBB0_18:
	movl	64(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%r15)
	movq	_QLINK_MAX_NR_AKM_SUITES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_21
## %bb.19:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_cpu_to_le32
	movq	32(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_20
LBB0_21:
	movl	48(%r12), %eax
	movl	%eax, 28(%r15)
	movl	44(%r12), %eax
	movl	%eax, 24(%r15)
	movl	40(%r12), %edi
	callq	_be16_to_cpu
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r15)
	movq	_WLAN_EID_SSID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r12), %ecx
	movl	36(%r12), %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_qtnf_cmd_skb_put_tlv_arr
	movq	16(%r12), %rcx
	testq	%rcx, %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_23
## %bb.22:
	movq	_QLINK_IE_SET_ASSOC_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r12), %edx
	movq	%rbx, %rdi
	callq	_qtnf_cmd_tlv_ie_set_add
LBB0_23:
	movl	24(%r12), %esi
	testl	%esi, %esi
	je	LBB0_25
## %bb.24:
	movq	%rbx, %rdi
	callq	_qtnf_cmd_channel_tlv_add
LBB0_25:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_qtnf_bus_lock
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_qtnf_cmd_send
	movl	%eax, %ebx
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_qtnf_bus_unlock
	movl	%ebx, %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLINK_CMD_CONNECT,4,2          ## @QLINK_CMD_CONNECT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SHRT_MAX,8,3                   ## @SHRT_MAX
	.comm	_ASSOC_REQ_DISABLE_HT,4,2       ## @ASSOC_REQ_DISABLE_HT
	.comm	_QLINK_STA_CONNECT_DISABLE_HT,4,2 ## @QLINK_STA_CONNECT_DISABLE_HT
	.comm	_ASSOC_REQ_DISABLE_VHT,4,2      ## @ASSOC_REQ_DISABLE_VHT
	.comm	_QLINK_STA_CONNECT_DISABLE_VHT,4,2 ## @QLINK_STA_CONNECT_DISABLE_VHT
	.comm	_ASSOC_REQ_USE_RRM,4,2          ## @ASSOC_REQ_USE_RRM
	.comm	_QLINK_STA_CONNECT_USE_RRM,4,2  ## @QLINK_STA_CONNECT_USE_RRM
	.comm	_QLINK_MAX_NR_CIPHER_SUITES,4,2 ## @QLINK_MAX_NR_CIPHER_SUITES
	.comm	_QLINK_MAX_NR_AKM_SUITES,4,2    ## @QLINK_MAX_NR_AKM_SUITES
	.comm	_WLAN_EID_SSID,4,2              ## @WLAN_EID_SSID
	.comm	_QLINK_IE_SET_ASSOC_REQ,4,2     ## @QLINK_IE_SET_ASSOC_REQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_send_connect          ; -- Begin function qtnf_cmd_send_connect
	.p2align	2
_qtnf_cmd_send_connect:                 ; @qtnf_cmd_send_connect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #12]
Lloh0:
	adrp	x8, _QLINK_CMD_CONNECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLINK_CMD_CONNECT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w3, #144
	bl	_qtnf_cmd_alloc_new_cmdskb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x22, [x0]
	ldr	w0, [x22, #136]
	ldr	w1, [x19, #8]
	bl	_ether_addr_copy
	ldr	w1, [x21, #132]
	ldr	w0, [x22, #132]
	cbz	w1, LBB0_4
; %bb.2:
	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_19
LBB0_4:
	bl	_eth_zero_addr
LBB0_5:
	ldr	w1, [x21, #128]
	ldr	w0, [x22, #128]
	cbz	w1, LBB0_7
; %bb.6:
	bl	_ether_addr_copy
	b	LBB0_8
LBB0_7:
	bl	_eth_zero_addr
LBB0_8:
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _SHRT_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SHRT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x8, #0, #8, le
	csinv	w0, w8, wzr, ge
	bl	_cpu_to_le16
	str	x0, [x22, #120]
	ldr	w8, [x21, #8]
Lloh9:
	adrp	x9, _ASSOC_REQ_DISABLE_HT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ASSOC_REQ_DISABLE_HT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _QLINK_STA_CONNECT_DISABLE_HT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _QLINK_STA_CONNECT_DISABLE_HT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh15:
	adrp	x10, _ASSOC_REQ_DISABLE_VHT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ASSOC_REQ_DISABLE_VHT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _QLINK_STA_CONNECT_DISABLE_VHT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _QLINK_STA_CONNECT_DISABLE_VHT@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w9, w10, w9
Lloh21:
	adrp	x10, _ASSOC_REQ_USE_RRM@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ASSOC_REQ_USE_RRM@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	adrp	x11, _QLINK_STA_CONNECT_USE_RRM@GOTPAGE
Lloh25:
	ldr	x11, [x11, _QLINK_STA_CONNECT_USE_RRM@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w0, w9, w8
	bl	_cpu_to_le32
	str	x0, [x22, #112]
	add	x0, x22, #104
	add	x1, x21, #124
	mov	w2, #4
	bl	_memcpy
	add	x0, x22, #100
	add	x1, x21, #120
	mov	w2, #4
	bl	_memcpy
	add	x0, x22, #96
	add	x1, x21, #116
	mov	w2, #4
	bl	_memcpy
	add	x0, x22, #92
	add	x1, x21, #112
	mov	w2, #4
	bl	_memcpy
	ldp	w9, w8, [x21, #104]
	str	w8, [x22, #88]
	str	w9, [x22, #80]
	ldp	w9, w8, [x21, #96]
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x22, #8]
	str	w9, [x22]
	ldr	w0, [x21, #88]
	bl	_cpu_to_le32
	str	x0, [x22, #72]
	ldr	w0, [x21, #84]
	bl	_cpu_to_le32
	str	x0, [x22, #64]
	ldr	w0, [x21, #80]
	bl	_cpu_to_le32
	str	x0, [x22, #56]
Lloh27:
	adrp	x23, _QLINK_MAX_NR_CIPHER_SUITES@GOTPAGE
Lloh28:
	ldr	x23, [x23, _QLINK_MAX_NR_CIPHER_SUITES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x24, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #72]
	ldr	w0, [x8, x24, lsl #2]
	bl	_cpu_to_le32
	ldr	x8, [x22, #48]
	str	x0, [x8, x24, lsl #3]
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_10
LBB0_11:
	ldr	w0, [x21, #64]
	bl	_cpu_to_le32
	str	x0, [x22, #40]
Lloh29:
	adrp	x23, _QLINK_MAX_NR_AKM_SUITES@GOTPAGE
Lloh30:
	ldr	x23, [x23, _QLINK_MAX_NR_AKM_SUITES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x24, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #56]
	ldr	w0, [x8, x24, lsl #2]
	bl	_cpu_to_le32
	ldr	x8, [x22, #32]
	str	x0, [x8, x24, lsl #3]
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_13
LBB0_14:
	ldur	d0, [x21, #44]
	str	d0, [x22, #24]
	ldr	w0, [x21, #40]
	bl	_be16_to_cpu
	bl	_cpu_to_le16
	str	x0, [x22, #16]
Lloh31:
	adrp	x8, _WLAN_EID_SSID@GOTPAGE
Lloh32:
	ldr	x8, [x8, _WLAN_EID_SSID@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldp	w3, w2, [x21, #32]
	mov	x0, x20
	bl	_qtnf_cmd_skb_put_tlv_arr
	ldr	x3, [x21, #16]
	cbz	x3, LBB0_16
; %bb.15:
Lloh34:
	adrp	x8, _QLINK_IE_SET_ASSOC_REQ@GOTPAGE
Lloh35:
	ldr	x8, [x8, _QLINK_IE_SET_ASSOC_REQ@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	w2, [x21, #28]
	mov	x0, x20
	bl	_qtnf_cmd_tlv_ie_set_add
LBB0_16:
	ldr	w1, [x21, #24]
	cbz	w1, LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_qtnf_cmd_channel_tlv_add
LBB0_18:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_qtnf_bus_lock
	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_19:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_QLINK_CMD_CONNECT,4,2          ; @QLINK_CMD_CONNECT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SHRT_MAX,8,3                   ; @SHRT_MAX
	.comm	_ASSOC_REQ_DISABLE_HT,4,2       ; @ASSOC_REQ_DISABLE_HT
	.comm	_QLINK_STA_CONNECT_DISABLE_HT,4,2 ; @QLINK_STA_CONNECT_DISABLE_HT
	.comm	_ASSOC_REQ_DISABLE_VHT,4,2      ; @ASSOC_REQ_DISABLE_VHT
	.comm	_QLINK_STA_CONNECT_DISABLE_VHT,4,2 ; @QLINK_STA_CONNECT_DISABLE_VHT
	.comm	_ASSOC_REQ_USE_RRM,4,2          ; @ASSOC_REQ_USE_RRM
	.comm	_QLINK_STA_CONNECT_USE_RRM,4,2  ; @QLINK_STA_CONNECT_USE_RRM
	.comm	_QLINK_MAX_NR_CIPHER_SUITES,4,2 ; @QLINK_MAX_NR_CIPHER_SUITES
	.comm	_QLINK_MAX_NR_AKM_SUITES,4,2    ; @QLINK_MAX_NR_AKM_SUITES
	.comm	_WLAN_EID_SSID,4,2              ; @WLAN_EID_SSID
	.comm	_QLINK_IE_SET_ASSOC_REQ,4,2     ; @QLINK_IE_SET_ASSOC_REQ
.subsections_via_symbols
