	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_ibss_join_existing
_lbs_ibss_join_existing:                ## @lbs_ibss_join_existing
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_RADIO_PREAMBLE_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_lbs_set_radio
	testl	%eax, %eax
	jne	LBB0_29
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	-160(%rbp), %rdi
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	movl	$96, %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movl	-80(%rbp), %edi
	movl	4(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	-84(%rbp), %edi
	movl	16(%r14), %edx
	movl	20(%r14), %esi
	callq	_memcpy
	movq	_CMD_BSS_TYPE_IBSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	movq	_WLAN_EID_DS_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movl	$1, -108(%rbp)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	_WLAN_EID_IBSS_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)
	movl	$2, -120(%rbp)
	movq	$0, -128(%rbp)
	movq	_CAPINFO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, -136(%rbp)
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	_WLAN_EID_SUPP_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_ieee80211_bss_get_ie
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movl	4(%rax), %r12d
	movq	-144(%rbp), %r15
	movq	_lbs_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_25
## %bb.4:
	movl	%r12d, %r13d
	andl	$-2, %r13d
	xorl	%r14d, %r14d
	movl	$4196372, %r9d                  ## imm = 0x400814
	jmp	LBB0_5
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, (%r15)
	addq	$4, %r15
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	movl	$4196372, %r9d                  ## imm = 0x400814
	jge	LBB0_25
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	_lbs_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testl	%r12d, %r12d
	jle	LBB0_24
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%rdi,%r14,4), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
	xorl	%ecx, %ecx
	cmpl	$1, %r12d
	jne	LBB0_7
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$4196372, %esi                  ## imm = 0x400814
	testb	$1, %r12b
	je	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%rbx,%rcx,4), %ecx
	movl	%ecx, %edx
	andl	$127, %edx
	cmpl	%edx, %eax
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$22, %ecx
	ja	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	btl	%ecx, %esi
	jae	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	orl	$128, %ecx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	%edx, (%r15)
	addq	$4, %r15
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=2
	addq	$2, %rcx
	cmpq	%rcx, %r13
	je	LBB0_18
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rbx,%rcx,4), %edx
	movl	%edx, %esi
	andl	$127, %esi
	cmpl	%esi, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$22, %edx
	ja	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	btl	%edx, %r9d
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	orl	$128, %edx
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	%edx, (%r15)
	addq	$4, %r15
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	12(%rbx,%rcx,4), %edx
	movl	%edx, %esi
	andl	$127, %esi
	cmpl	%esi, %eax
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$22, %edx
	ja	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	btl	%edx, %r9d
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=2
	orl	$128, %edx
	jmp	LBB0_16
LBB0_2:
	movq	-144(%rbp), %rdi
	callq	_lbs_add_rates
LBB0_25:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_MRVL_FW_MAJOR_REV
	cmpl	$8, %eax
	jg	LBB0_27
## %bb.26:
	movq	_MRVDRV_ASSOCIATION_TIME_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -152(%rbp)
	movq	_CMD_SCAN_PROBE_DELAY_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -160(%rbp)
LBB0_27:
	movq	_CMD_802_11_AD_HOC_JOIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-160(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_lbs_cmd_with_response
	testl	%eax, %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_29
## %bb.28:
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	movq	%rbx, %rdi
	callq	_lbs_join_post
	xorl	%eax, %eax
LBB0_29:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADIO_PREAMBLE_SHORT,4,2       ## @RADIO_PREAMBLE_SHORT
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_CMD_BSS_TYPE_IBSS,4,2          ## @CMD_BSS_TYPE_IBSS
	.comm	_WLAN_EID_DS_PARAMS,4,2         ## @WLAN_EID_DS_PARAMS
	.comm	_WLAN_EID_IBSS_PARAMS,4,2       ## @WLAN_EID_IBSS_PARAMS
	.comm	_CAPINFO_MASK,4,2               ## @CAPINFO_MASK
	.comm	_WLAN_EID_SUPP_RATES,4,2        ## @WLAN_EID_SUPP_RATES
	.comm	_lbs_rates,8,3                  ## @lbs_rates
	.comm	_MRVDRV_ASSOCIATION_TIME_OUT,4,2 ## @MRVDRV_ASSOCIATION_TIME_OUT
	.comm	_CMD_SCAN_PROBE_DELAY_TIME,4,2  ## @CMD_SCAN_PROBE_DELAY_TIME
	.comm	_CMD_802_11_AD_HOC_JOIN,4,2     ## @CMD_802_11_AD_HOC_JOIN
	.no_dead_strip	_lbs_ibss_join_existing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_ibss_join_existing
_lbs_ibss_join_existing:                ; @lbs_ibss_join_existing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _RADIO_PREAMBLE_SHORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADIO_PREAMBLE_SHORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w21, #1
	mov	w2, #1
	bl	_lbs_set_radio
	cbnz	w0, LBB0_15
; %bb.1:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #96
	bl	_memset
	mov	w0, #96
	bl	_cpu_to_le16
	str	x0, [sp, #104]
	ldr	w0, [sp, #96]
	ldr	w1, [x22, #4]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w0, [sp, #92]
	ldp	w2, w1, [x19, #16]
	bl	_memcpy
Lloh6:
	adrp	x8, _CMD_BSS_TYPE_IBSS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_BSS_TYPE_IBSS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #88]
	ldr	w0, [x19]
	bl	_cpu_to_le16
	str	x0, [sp, #80]
Lloh9:
	adrp	x8, _WLAN_EID_DS_PARAMS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLAN_EID_DS_PARAMS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w21, w8, [sp, #68]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [sp, #64]
Lloh12:
	adrp	x8, _WLAN_EID_IBSS_PARAMS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WLAN_EID_IBSS_PARAMS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #2
	stp	w9, w8, [sp, #56]
	str	xzr, [sp, #48]
	ldr	w8, [x22]
Lloh15:
	adrp	x9, _CAPINFO_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CAPINFO_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_cpu_to_le16
	str	x0, [sp, #40]
	bl	_rcu_read_lock
Lloh18:
	adrp	x8, _WLAN_EID_SUPP_RATES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WLAN_EID_SUPP_RATES@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x22
	bl	_ieee80211_bss_get_ie
	cbz	x0, LBB0_10
; %bb.2:
	mov	x22, x0
	ldr	w23, [x0, #4]
	ldr	x24, [sp, #32]
Lloh21:
	adrp	x25, _lbs_rates@GOTPAGE
Lloh22:
	ldr	x25, [x25, _lbs_rates@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x26, #0
	add	x22, x22, #8
	mov	w27, #26215
	movk	w27, #26214, lsl #16
	mov	w28, #1
	mov	w21, #2068
	movk	w21, #64, lsl #16
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	bl	_ARRAY_SIZE
	cmp	x26, w0, sxtw
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x0, [x25]
	cmp	w23, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x0, x26, lsl #2]
	mul	x8, x8, x27
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	mov	x9, x23
	mov	x10, x22
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x10, x10, #4
	subs	x9, x9, #1
	b.eq	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x10]
	and	w12, w11, #0x7f
	cmp	w8, w12
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w11, #22
	lsl	w12, w28, w11
	and	w12, w12, w21
	ccmp	w12, #0, #4, ls
	orr	w12, w11, #0x80
	csel	w11, w12, w11, ne
	str	w11, [x24], #4
	b	LBB0_7
LBB0_10:
	ldr	x0, [sp, #32]
	bl	_lbs_add_rates
LBB0_11:
	bl	_rcu_read_unlock
	ldr	w0, [x20]
	bl	_MRVL_FW_MAJOR_REV
	cmp	w0, #8
	b.gt	LBB0_13
; %bb.12:
Lloh23:
	adrp	x8, _MRVDRV_ASSOCIATION_TIME_OUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MRVDRV_ASSOCIATION_TIME_OUT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #24]
Lloh26:
	adrp	x8, _CMD_SCAN_PROBE_DELAY_TIME@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CMD_SCAN_PROBE_DELAY_TIME@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #16]
LBB0_13:
Lloh29:
	adrp	x8, _CMD_802_11_AD_HOC_JOIN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CMD_802_11_AD_HOC_JOIN@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x20
	bl	_lbs_cmd_with_response
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbnz	w0, LBB0_15
; %bb.14:
	ldp	w3, w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_lbs_join_post
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_RADIO_PREAMBLE_SHORT,4,2       ; @RADIO_PREAMBLE_SHORT
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_CMD_BSS_TYPE_IBSS,4,2          ; @CMD_BSS_TYPE_IBSS
	.comm	_WLAN_EID_DS_PARAMS,4,2         ; @WLAN_EID_DS_PARAMS
	.comm	_WLAN_EID_IBSS_PARAMS,4,2       ; @WLAN_EID_IBSS_PARAMS
	.comm	_CAPINFO_MASK,4,2               ; @CAPINFO_MASK
	.comm	_WLAN_EID_SUPP_RATES,4,2        ; @WLAN_EID_SUPP_RATES
	.comm	_lbs_rates,8,3                  ; @lbs_rates
	.comm	_MRVDRV_ASSOCIATION_TIME_OUT,4,2 ; @MRVDRV_ASSOCIATION_TIME_OUT
	.comm	_CMD_SCAN_PROBE_DELAY_TIME,4,2  ; @CMD_SCAN_PROBE_DELAY_TIME
	.comm	_CMD_802_11_AD_HOC_JOIN,4,2     ; @CMD_802_11_AD_HOC_JOIN
	.no_dead_strip	_lbs_ibss_join_existing
.subsections_via_symbols
