	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_beacon_probe
_handle_beacon_probe:                   ## @handle_beacon_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	_WLAN_CAPABILITY_SHORT_PREAMBLE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_LONG_PREAMBLE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SHORT_PREAMBLE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	cmpl	%ecx, (%rbx)
	jne	LBB0_6
## %bb.4:
	cmpl	%r14d, 4(%rbx)
	jne	LBB0_7
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movl	%ecx, (%rbx)
	movq	_Local_Mib_Type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LOCAL_MIB_PREAMBLE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_atmel_set_mib8
	cmpl	%r14d, 4(%rbx)
	je	LBB0_8
LBB0_7:
	movl	%r14d, 4(%rbx)
	movq	_Phy_Mib_Type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_MIB_CHANNEL_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_atmel_set_mib8
LBB0_8:
	movq	$0, 16(%rbx)
	movq	_STATION_STATE_JOINNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_atmel_enter_state
	movq	8(%rbx), %rax
	movq	_IW_MODE_INFRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movq	_BSS_TYPE_INFRASTRUCTURE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_BSS_TYPE_AD_HOC@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_join                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_CAPABILITY_SHORT_PREAMBLE,4,2 ## @WLAN_CAPABILITY_SHORT_PREAMBLE
	.comm	_SHORT_PREAMBLE,4,2             ## @SHORT_PREAMBLE
	.comm	_LONG_PREAMBLE,4,2              ## @LONG_PREAMBLE
	.comm	_Local_Mib_Type,4,2             ## @Local_Mib_Type
	.comm	_LOCAL_MIB_PREAMBLE_TYPE,4,2    ## @LOCAL_MIB_PREAMBLE_TYPE
	.comm	_Phy_Mib_Type,4,2               ## @Phy_Mib_Type
	.comm	_PHY_MIB_CHANNEL_POS,4,2        ## @PHY_MIB_CHANNEL_POS
	.comm	_STATION_STATE_JOINNING,4,2     ## @STATION_STATE_JOINNING
	.comm	_IW_MODE_INFRA,8,3              ## @IW_MODE_INFRA
	.comm	_BSS_TYPE_INFRASTRUCTURE,4,2    ## @BSS_TYPE_INFRASTRUCTURE
	.comm	_BSS_TYPE_AD_HOC,4,2            ## @BSS_TYPE_AD_HOC
	.no_dead_strip	_handle_beacon_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_beacon_probe
_handle_beacon_probe:                   ; @handle_beacon_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _WLAN_CAPABILITY_SHORT_PREAMBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_CAPABILITY_SHORT_PREAMBLE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SHORT_PREAMBLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SHORT_PREAMBLE@GOTPAGEOFF]
Lloh4:
	adrp	x10, _LONG_PREAMBLE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _LONG_PREAMBLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w1
	csel	x8, x10, x9, eq
	ldr	w3, [x8]
	ldr	w8, [x0]
	cmp	w8, w3
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	str	w3, [x19]
Lloh7:
	adrp	x8, _Local_Mib_Type@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Local_Mib_Type@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _LOCAL_MIB_PREAMBLE_TYPE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOCAL_MIB_PREAMBLE_TYPE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_atmel_set_mib8
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.eq	LBB0_5
LBB0_4:
	str	w20, [x19, #4]
Lloh13:
	adrp	x8, _Phy_Mib_Type@GOTPAGE
Lloh14:
	ldr	x8, [x8, _Phy_Mib_Type@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _PHY_MIB_CHANNEL_POS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PHY_MIB_CHANNEL_POS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_atmel_set_mib8
LBB0_5:
	str	xzr, [x19, #16]
Lloh19:
	adrp	x8, _STATION_STATE_JOINNING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STATION_STATE_JOINNING@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_atmel_enter_state
	ldr	x8, [x19, #8]
Lloh22:
	adrp	x9, _IW_MODE_INFRA@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IW_MODE_INFRA@GOTPAGEOFF]
Lloh24:
	adrp	x10, _BSS_TYPE_INFRASTRUCTURE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _BSS_TYPE_INFRASTRUCTURE@GOTPAGEOFF]
Lloh26:
	adrp	x11, _BSS_TYPE_AD_HOC@GOTPAGE
Lloh27:
	ldr	x11, [x11, _BSS_TYPE_AD_HOC@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_join
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh28
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_CAPABILITY_SHORT_PREAMBLE,4,2 ; @WLAN_CAPABILITY_SHORT_PREAMBLE
	.comm	_SHORT_PREAMBLE,4,2             ; @SHORT_PREAMBLE
	.comm	_LONG_PREAMBLE,4,2              ; @LONG_PREAMBLE
	.comm	_Local_Mib_Type,4,2             ; @Local_Mib_Type
	.comm	_LOCAL_MIB_PREAMBLE_TYPE,4,2    ; @LOCAL_MIB_PREAMBLE_TYPE
	.comm	_Phy_Mib_Type,4,2               ; @Phy_Mib_Type
	.comm	_PHY_MIB_CHANNEL_POS,4,2        ; @PHY_MIB_CHANNEL_POS
	.comm	_STATION_STATE_JOINNING,4,2     ; @STATION_STATE_JOINNING
	.comm	_IW_MODE_INFRA,8,3              ; @IW_MODE_INFRA
	.comm	_BSS_TYPE_INFRASTRUCTURE,4,2    ; @BSS_TYPE_INFRASTRUCTURE
	.comm	_BSS_TYPE_AD_HOC,4,2            ; @BSS_TYPE_AD_HOC
	.no_dead_strip	_handle_beacon_probe
.subsections_via_symbols
