	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_join_bss
_atmel_join_bss:                        ## @atmel_join_bss
	.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	%rdi, %rbx
	movq	80(%rdi), %r14
	movslq	%esi, %rax
	movl	72(%rdi), %edi
	leaq	(%rax,%rax,2), %r15
	shlq	$4, %r15
	movl	44(%r14,%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	68(%rbx), %edi
	movl	36(%r14,%r15), %edx
	movl	40(%r14,%r15), %esi
	movl	%edx, 64(%rbx)
	callq	_memcpy
	cmpq	$0, 56(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_build_wpa_mib
LBB0_2:
	movq	(%r14,%r15), %rax
	movq	_IW_MODE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	cmpq	%rax, (%rbx)
	je	LBB0_6
## %bb.4:
	cmpq	$0, 48(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	(%r14,%r15), %r12
	movq	$0, 48(%rbx)
	movl	$1, 8(%rbx)
	movq	_Mac_Mgmt_Mib_Type@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MAC_MGMT_MIB_PS_MODE_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ACTIVE_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rdi
	callq	_atmel_set_mib8
	movl	(%r13), %esi
	movq	_MAC_MGMT_MIB_LISTEN_INTERVAL_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_atmel_set_mib16
	movq	(%r12), %rax
LBB0_6:
	movq	%rax, (%rbx)
	movl	8(%r14,%r15), %eax
	andl	$127, %eax
	movl	%eax, 12(%rbx)
	movl	32(%r14,%r15), %eax
	movl	%eax, 40(%rbx)
	movq	16(%r14,%r15), %rcx
	cmpq	%rcx, 16(%rbx)
	je	LBB0_8
## %bb.7:
	movq	%rcx, 16(%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
LBB0_8:
	cmpq	$0, 32(%rbx)
	movq	24(%r14,%r15), %rax
	je	LBB0_9
## %bb.11:
	testq	%rax, %rax
	je	LBB0_10
LBB0_12:
	movq	_STATION_STATE_JOINNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_atmel_enter_state
	movq	(%rbx), %rax
	movq	_IW_MODE_INFRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	movq	_BSS_TYPE_INFRASTRUCTURE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	testq	%rax, %rax
	je	LBB0_12
LBB0_10:
	movq	_STATION_STATE_MGMT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_atmel_enter_state
	movq	$0, 24(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_BSS_TYPE_AD_HOC@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_join                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_IW_MODE_ADHOC,8,3              ## @IW_MODE_ADHOC
	.comm	_Mac_Mgmt_Mib_Type,4,2          ## @Mac_Mgmt_Mib_Type
	.comm	_MAC_MGMT_MIB_PS_MODE_POS,4,2   ## @MAC_MGMT_MIB_PS_MODE_POS
	.comm	_ACTIVE_MODE,8,3                ## @ACTIVE_MODE
	.comm	_MAC_MGMT_MIB_LISTEN_INTERVAL_POS,4,2 ## @MAC_MGMT_MIB_LISTEN_INTERVAL_POS
	.comm	_Local_Mib_Type,4,2             ## @Local_Mib_Type
	.comm	_LOCAL_MIB_PREAMBLE_TYPE,4,2    ## @LOCAL_MIB_PREAMBLE_TYPE
	.comm	_STATION_STATE_MGMT_ERROR,4,2   ## @STATION_STATE_MGMT_ERROR
	.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	_atmel_join_bss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_join_bss
_atmel_join_bss:                        ; @atmel_join_bss
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x20, [x0, #80]
	sxtw	x21, w1
	ldr	w0, [x0, #72]
	mov	w8, #48
	smaddl	x22, w1, w8, x20
	ldr	w1, [x22, #44]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w0, [x19, #68]
	ldp	w2, w1, [x22, #36]
	str	w2, [x19, #64]
	bl	_memcpy
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_build_wpa_mib
LBB0_2:
	mov	w8, #48
	madd	x22, x21, x8, x20
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _IW_MODE_ADHOC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IW_MODE_ADHOC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x9, [x19]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.4:
	ldr	x9, [x19, #48]
	cbz	x9, LBB0_6
; %bb.5:
	str	xzr, [x19, #48]
	mov	w8, #1
	str	w8, [x19, #8]
Lloh6:
	adrp	x23, _Mac_Mgmt_Mib_Type@GOTPAGE
Lloh7:
	ldr	x23, [x23, _Mac_Mgmt_Mib_Type@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x8, _MAC_MGMT_MIB_PS_MODE_POS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC_MGMT_MIB_PS_MODE_POS@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _ACTIVE_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACTIVE_MODE@GOTPAGEOFF]
Lloh13:
	ldr	x3, [x8]
	mov	x0, x19
	bl	_atmel_set_mib8
	ldr	w1, [x23]
Lloh14:
	adrp	x8, _MAC_MGMT_MIB_LISTEN_INTERVAL_POS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAC_MGMT_MIB_LISTEN_INTERVAL_POS@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_atmel_set_mib16
	ldr	x8, [x22]
LBB0_6:
	str	x8, [x19]
	mov	w8, #48
	madd	x8, x21, x8, x20
	ldr	w9, [x8, #8]
	and	w9, w9, #0x7f
	str	w9, [x19, #12]
	ldr	w9, [x8, #32]
	str	w9, [x19, #40]
	ldr	x9, [x19, #16]
	ldr	x3, [x8, #16]
	cmp	x9, x3
	b.eq	LBB0_8
; %bb.7:
	str	x3, [x19, #16]
Lloh17:
	adrp	x8, _Local_Mib_Type@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Local_Mib_Type@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _LOCAL_MIB_PREAMBLE_TYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LOCAL_MIB_PREAMBLE_TYPE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_atmel_set_mib8
LBB0_8:
	ldr	x9, [x19, #32]
	mov	w8, #48
	madd	x8, x21, x8, x20
	ldr	x8, [x8, #24]
	cbz	x9, LBB0_12
; %bb.9:
	cbz	x8, LBB0_13
LBB0_10:
Lloh23:
	adrp	x8, _STATION_STATE_JOINNING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _STATION_STATE_JOINNING@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_atmel_enter_state
	ldr	x8, [x19]
Lloh26:
	adrp	x9, _IW_MODE_INFRA@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IW_MODE_INFRA@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.11:
Lloh29:
	adrp	x8, _BSS_TYPE_INFRASTRUCTURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BSS_TYPE_INFRASTRUCTURE@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
	cbz	x8, LBB0_10
LBB0_13:
Lloh31:
	adrp	x8, _STATION_STATE_MGMT_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _STATION_STATE_MGMT_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_atmel_enter_state
	str	xzr, [x19, #24]
	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
LBB0_14:
Lloh34:
	adrp	x8, _BSS_TYPE_AD_HOC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BSS_TYPE_AD_HOC@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_join
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_IW_MODE_ADHOC,8,3              ; @IW_MODE_ADHOC
	.comm	_Mac_Mgmt_Mib_Type,4,2          ; @Mac_Mgmt_Mib_Type
	.comm	_MAC_MGMT_MIB_PS_MODE_POS,4,2   ; @MAC_MGMT_MIB_PS_MODE_POS
	.comm	_ACTIVE_MODE,8,3                ; @ACTIVE_MODE
	.comm	_MAC_MGMT_MIB_LISTEN_INTERVAL_POS,4,2 ; @MAC_MGMT_MIB_LISTEN_INTERVAL_POS
	.comm	_Local_Mib_Type,4,2             ; @Local_Mib_Type
	.comm	_LOCAL_MIB_PREAMBLE_TYPE,4,2    ; @LOCAL_MIB_PREAMBLE_TYPE
	.comm	_STATION_STATE_MGMT_ERROR,4,2   ; @STATION_STATE_MGMT_ERROR
	.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	_atmel_join_bss
.subsections_via_symbols
