	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at76_startup_device
_at76_startup_device:                   ## @at76_startup_device
	.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
	leaq	96(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_DBG_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	88(%rdi), %rax
	movl	(%rax), %edi
	callq	_wiphy_name
	movl	212(%rbx), %ecx
	movl	216(%rbx), %r8d
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	_IW_MODE_ADHOC@GOTPCREL(%rip), %rdx
	movq	(%rbx), %rsi
	movq	8(%rbx), %r10
	cmpq	(%rdx), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %r11
	cmoveq	%rdx, %r11
	movl	232(%rbx), %r12d
	cmpq	$0, 224(%rbx)
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.3(%rip), %r14
	cmoveq	%rdx, %r14
	movq	16(%rbx), %r13
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	pushq	(%r13,%r10,8)
	movq	_DBG_PARAMS@GOTPCREL(%rip), %r13
	pushq	%r10
	pushq	%r14
	pushq	%r12
	pushq	%r11
	pushq	%r8
	callq	_at76_dbg
	addq	$48, %rsp
	movl	(%r13), %r15d
	movq	88(%rbx), %rax
	movl	(%rax), %edi
	callq	_wiphy_name
	movq	_preambles@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	24(%rbx), %rdx
	movq	32(%rbx), %r9
	movl	(%rcx,%rdx,4), %ecx
	movl	76(%rbx), %r8d
	movl	80(%rbx), %r10d
	movq	40(%rbx), %rdx
	movq	_TX_RATE_1MBIT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.6(%rip), %r11
	jmp	LBB0_4
LBB0_2:
	movq	_TX_RATE_2MBIT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_19
## %bb.3:
	leaq	L_.str.7(%rip), %r11
LBB0_4:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %r12
LBB0_5:
	subq	$8, %rsp
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	pushq	48(%rbx)
	pushq	%r11
	pushq	%r10
	callq	_at76_dbg
	addq	$32, %rsp
	movl	(%r13), %r15d
	movq	88(%rbx), %rax
	movl	(%rax), %edi
	callq	_wiphy_name
	movl	244(%rbx), %ecx
	movl	240(%rbx), %r8d
	movq	_WLAN_AUTH_OPEN@GOTPCREL(%rip), %rdx
	movq	48(%rbx), %rsi
	cmpq	(%rdx), %rsi
	leaq	L_.str.13(%rip), %rdx
	leaq	L_.str.14(%rip), %r9
	cmoveq	%rdx, %r9
	movl	236(%rbx), %r10d
	movq	64(%rbx), %rdx
	movq	_SCAN_TYPE_ACTIVE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	leaq	L_.str.15(%rip), %rdx
	leaq	L_.str.16(%rip), %r11
	cmoveq	%rdx, %r11
	subq	$8, %rsp
	leaq	L_.str.12(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	pushq	%r11
	pushq	56(%rbx)
	pushq	%r10
	callq	_at76_dbg
	addq	$32, %rsp
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$104, %edx
	callq	_memset
	movq	$0, 192(%rbx)
	movq	32(%rbx), %rax
	movq	%rax, 96(%rbx)
	cmpq	$0, 224(%rbx)
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_WEP_SMALL_KEY_LEN@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setg	%dl
	incl	%edx
	movl	%edx, 104(%rbx)
	movl	$1, 108(%rbx)
	jmp	LBB0_8
LBB0_7:
	movq	$0, 104(%rbx)
LBB0_8:
	movl	76(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 184(%rbx)
	movl	80(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 176(%rbx)
	movl	172(%rbx), %edi
	movq	_hw_rates@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	40(%rbx), %rax
	movq	_TX_RATE_AUTO@GOTPCREL(%rip), %r15
	xorl	%ecx, %ecx
	cmpq	(%r15), %rax
	sete	%cl
	movl	%ecx, 112(%rbx)
	movl	232(%rbx), %eax
	movl	%eax, 168(%rbx)
	movq	224(%rbx), %rax
	movq	%rax, 160(%rbx)
	movl	152(%rbx), %edi
	movl	216(%rbx), %esi
	movl	(%r12), %edx
	callq	_memcpy
	movl	212(%rbx), %eax
	movl	%eax, 148(%rbx)
	movq	8(%rbx), %rax
	movq	%rax, 120(%rbx)
	movl	144(%rbx), %edi
	movl	208(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	24(%rbx), %rax
	movq	%rax, 128(%rbx)
	movl	204(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 136(%rbx)
	movl	200(%rbx), %edi
	movq	_CMD_STARTUP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdx
	movl	$104, %ecx
	callq	_at76_set_card_command
	testl	%eax, %eax
	js	LBB0_18
## %bb.9:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_at76_wait_completion
	movl	84(%rbx), %edi
	callq	_eth_zero_addr
	movl	$0, 72(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_at76_set_radio
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.10:
	movq	_CMD_RADIO_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_at76_wait_completion
LBB0_11:
	movq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_at76_set_preamble
	testl	%eax, %eax
	js	LBB0_28
## %bb.12:
	movl	80(%rbx), %esi
	movq	%rbx, %rdi
	callq	_at76_set_frag
	testl	%eax, %eax
	js	LBB0_28
## %bb.13:
	movl	76(%rbx), %esi
	movq	%rbx, %rdi
	callq	_at76_set_rts
	testl	%eax, %eax
	js	LBB0_28
## %bb.14:
	movq	40(%rbx), %rax
	xorl	%esi, %esi
	cmpq	(%r15), %rax
	sete	%sil
	movq	%rbx, %rdi
	callq	_at76_set_autorate_fallback
	testl	%eax, %eax
	js	LBB0_28
## %bb.15:
	movq	%rbx, %rdi
	callq	_at76_set_pm_mode
	testl	%eax, %eax
	js	LBB0_28
## %bb.16:
	movq	_at76_debug@GOTPCREL(%rip), %rax
	movq	_DBG_MIB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	je	LBB0_29
## %bb.17:
	movq	%rbx, %rdi
	callq	_at76_dump_mib_mac
	movq	%rbx, %rdi
	callq	_at76_dump_mib_mac_addr
	movq	%rbx, %rdi
	callq	_at76_dump_mib_mac_mgmt
	movq	%rbx, %rdi
	callq	_at76_dump_mib_mac_wep
	movq	%rbx, %rdi
	callq	_at76_dump_mib_mdomain
	movq	%rbx, %rdi
	callq	_at76_dump_mib_phy
	movq	%rbx, %rdi
	callq	_at76_dump_mib_local
	jmp	LBB0_29
LBB0_28:
	movl	%eax, %r14d
	jmp	LBB0_29
LBB0_18:
	movl	%eax, %r14d
	movq	88(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.17(%rip), %rsi
	movl	%r14d, %edx
	callq	_wiphy_err
LBB0_29:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_TX_RATE_5_5MBIT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %r12
	jne	LBB0_23
## %bb.20:
	leaq	L_.str.8(%rip), %r11
	jmp	LBB0_5
LBB0_23:
	movq	_TX_RATE_11MBIT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_26
## %bb.24:
	leaq	L_.str.9(%rip), %r11
	jmp	LBB0_5
LBB0_26:
	movq	_TX_RATE_AUTO@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	leaq	L_.str.10(%rip), %rdx
	leaq	L_.str.11(%rip), %r11
	cmoveq	%rdx, %r11
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_PARAMS,4,2                 ## @DBG_PARAMS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s param: ssid %.*s (%*phD) mode %s ch %d wep %s key %d keylen %d"

	.comm	_IW_ESSID_MAX_SIZE,4,2          ## @IW_ESSID_MAX_SIZE
	.comm	_IW_MODE_ADHOC,8,3              ## @IW_MODE_ADHOC
L_.str.1:                               ## @.str.1
	.asciz	"adhoc"

L_.str.2:                               ## @.str.2
	.asciz	"infra"

L_.str.3:                               ## @.str.3
	.asciz	"enabled"

L_.str.4:                               ## @.str.4
	.asciz	"disabled"

L_.str.5:                               ## @.str.5
	.asciz	"%s param: preamble %s rts %d retry %d frag %d txrate %s auth_mode %d"

	.comm	_preambles,8,3                  ## @preambles
	.comm	_TX_RATE_1MBIT,8,3              ## @TX_RATE_1MBIT
L_.str.6:                               ## @.str.6
	.asciz	"1MBit"

	.comm	_TX_RATE_2MBIT,8,3              ## @TX_RATE_2MBIT
L_.str.7:                               ## @.str.7
	.asciz	"2MBit"

	.comm	_TX_RATE_5_5MBIT,8,3            ## @TX_RATE_5_5MBIT
L_.str.8:                               ## @.str.8
	.asciz	"5.5MBit"

	.comm	_TX_RATE_11MBIT,8,3             ## @TX_RATE_11MBIT
L_.str.9:                               ## @.str.9
	.asciz	"11MBit"

	.comm	_TX_RATE_AUTO,8,3               ## @TX_RATE_AUTO
L_.str.10:                              ## @.str.10
	.asciz	"auto"

L_.str.11:                              ## @.str.11
	.asciz	"<invalid>"

L_.str.12:                              ## @.str.12
	.asciz	"%s param: pm_mode %d pm_period %d auth_mode %s scan_times %d %d scan_mode %s"

	.comm	_WLAN_AUTH_OPEN,8,3             ## @WLAN_AUTH_OPEN
L_.str.13:                              ## @.str.13
	.asciz	"open"

L_.str.14:                              ## @.str.14
	.asciz	"shared_secret"

	.comm	_SCAN_TYPE_ACTIVE,8,3           ## @SCAN_TYPE_ACTIVE
L_.str.15:                              ## @.str.15
	.asciz	"active"

L_.str.16:                              ## @.str.16
	.asciz	"passive"

	.comm	_WEP_SMALL_KEY_LEN,8,3          ## @WEP_SMALL_KEY_LEN
	.comm	_hw_rates,4,2                   ## @hw_rates
	.comm	_CMD_STARTUP,4,2                ## @CMD_STARTUP
L_.str.17:                              ## @.str.17
	.asciz	"at76_set_card_command failed: %d\n"

	.comm	_CMD_RADIO_ON,4,2               ## @CMD_RADIO_ON
	.comm	_at76_debug,4,2                 ## @at76_debug
	.comm	_DBG_MIB,4,2                    ## @DBG_MIB
	.no_dead_strip	_at76_startup_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at76_startup_device
_at76_startup_device:                   ; @at76_startup_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	add	x20, x0, #96
Lloh0:
	adrp	x24, _DBG_PARAMS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DBG_PARAMS@GOTPAGEOFF]
	ldr	w21, [x24]
	ldr	x8, [x0, #88]
	ldr	w0, [x8]
	bl	_wiphy_name
	mov	x2, x0
Lloh2:
	adrp	x23, _IW_ESSID_MAX_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IW_ESSID_MAX_SIZE@GOTPAGEOFF]
	ldp	w3, w4, [x19, #212]
Lloh4:
	adrp	x8, _IW_MODE_ADHOC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IW_MODE_ADHOC@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, l_.str.2@PAGE
Lloh8:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh9:
	adrp	x10, l_.str.1@PAGE
Lloh10:
	add	x10, x10, l_.str.1@PAGEOFF
	ldp	x11, x12, [x19]
	cmp	x11, x8
	csel	x8, x10, x9, eq
	ldr	x9, [x19, #224]
Lloh11:
	adrp	x10, l_.str.3@PAGE
Lloh12:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh13:
	adrp	x11, l_.str.4@PAGE
Lloh14:
	add	x11, x11, l_.str.4@PAGEOFF
	cmp	x9, #0
	csel	x9, x11, x10, eq
	ldr	x10, [x19, #16]
	ldr	x10, [x10, x12, lsl #3]
	ldr	w11, [x23]
	ldr	w13, [x19, #232]
	stp	x12, x10, [sp, #40]
	stp	x13, x9, [sp, #24]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	stp	x4, x8, [sp, #8]
	str	x11, [sp]
	mov	x0, x21
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_at76_dbg
	ldr	w21, [x24]
	ldr	x8, [x19, #88]
	ldr	w0, [x8]
	bl	_wiphy_name
	mov	x2, x0
Lloh17:
	adrp	x8, _preambles@GOTPAGE
Lloh18:
	ldr	x8, [x8, _preambles@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x8]
	ldp	x10, x8, [x19, #24]
	ldr	w3, [x9, x10, lsl #2]
	ldp	w4, w9, [x19, #76]
	ldr	x10, [x19, #40]
Lloh20:
	adrp	x11, _TX_RATE_1MBIT@GOTPAGE
Lloh21:
	ldr	x11, [x11, _TX_RATE_1MBIT@GOTPAGEOFF]
Lloh22:
	ldr	x11, [x11]
Lloh23:
	adrp	x22, _TX_RATE_AUTO@GOTPAGE
Lloh24:
	ldr	x22, [x22, _TX_RATE_AUTO@GOTPAGEOFF]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.1:
Lloh25:
	adrp	x10, l_.str.6@PAGE
Lloh26:
	add	x10, x10, l_.str.6@PAGEOFF
	b	LBB0_9
LBB0_2:
Lloh27:
	adrp	x11, _TX_RATE_2MBIT@GOTPAGE
Lloh28:
	ldr	x11, [x11, _TX_RATE_2MBIT@GOTPAGEOFF]
Lloh29:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.3:
Lloh30:
	adrp	x10, l_.str.7@PAGE
Lloh31:
	add	x10, x10, l_.str.7@PAGEOFF
	b	LBB0_9
LBB0_4:
Lloh32:
	adrp	x11, _TX_RATE_5_5MBIT@GOTPAGE
Lloh33:
	ldr	x11, [x11, _TX_RATE_5_5MBIT@GOTPAGEOFF]
Lloh34:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.5:
Lloh35:
	adrp	x10, l_.str.8@PAGE
Lloh36:
	add	x10, x10, l_.str.8@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh37:
	adrp	x11, _TX_RATE_11MBIT@GOTPAGE
Lloh38:
	ldr	x11, [x11, _TX_RATE_11MBIT@GOTPAGEOFF]
Lloh39:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.7:
Lloh40:
	adrp	x10, l_.str.9@PAGE
Lloh41:
	add	x10, x10, l_.str.9@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	x11, [x22]
Lloh42:
	adrp	x12, l_.str.11@PAGE
Lloh43:
	add	x12, x12, l_.str.11@PAGEOFF
Lloh44:
	adrp	x13, l_.str.10@PAGE
Lloh45:
	add	x13, x13, l_.str.10@PAGEOFF
	cmp	x10, x11
	csel	x10, x13, x12, eq
LBB0_9:
	ldr	x11, [x19, #48]
	stp	x10, x11, [sp, #16]
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
	stp	x8, x9, [sp]
	mov	x0, x21
	bl	_at76_dbg
	ldr	w21, [x24]
	ldr	x8, [x19, #88]
	ldr	w0, [x8]
	bl	_wiphy_name
	mov	x2, x0
	ldr	w3, [x19, #244]
Lloh48:
	adrp	x8, _WLAN_AUTH_OPEN@GOTPAGE
Lloh49:
	ldr	x8, [x8, _WLAN_AUTH_OPEN@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
Lloh51:
	adrp	x9, l_.str.14@PAGE
Lloh52:
	add	x9, x9, l_.str.14@PAGEOFF
Lloh53:
	adrp	x10, l_.str.13@PAGE
Lloh54:
	add	x10, x10, l_.str.13@PAGEOFF
	ldp	x11, x12, [x19, #48]
	cmp	x11, x8
	csel	x8, x10, x9, eq
	ldr	x9, [x19, #64]
Lloh55:
	adrp	x10, _SCAN_TYPE_ACTIVE@GOTPAGE
Lloh56:
	ldr	x10, [x10, _SCAN_TYPE_ACTIVE@GOTPAGEOFF]
Lloh57:
	ldr	x10, [x10]
Lloh58:
	adrp	x11, l_.str.16@PAGE
Lloh59:
	add	x11, x11, l_.str.16@PAGEOFF
Lloh60:
	adrp	x13, l_.str.15@PAGE
Lloh61:
	add	x13, x13, l_.str.15@PAGEOFF
	cmp	x9, x10
	csel	x9, x13, x11, eq
	ldp	w10, w4, [x19, #236]
	stp	x12, x9, [sp, #16]
Lloh62:
	adrp	x1, l_.str.12@PAGE
Lloh63:
	add	x1, x1, l_.str.12@PAGEOFF
	stp	x8, x10, [sp]
	mov	x0, x21
	bl	_at76_dbg
	mov	x0, x20
	mov	w1, #0
	mov	w2, #104
	bl	_memset
	str	xzr, [x19, #192]
	ldr	x8, [x19, #32]
	str	x8, [x19, #96]
	ldr	x8, [x19, #224]
	cbz	x8, LBB0_11
; %bb.10:
	ldp	x9, x8, [x19, #8]
	ldr	x8, [x8, x9, lsl #3]
Lloh64:
	adrp	x9, _WEP_SMALL_KEY_LEN@GOTPAGE
Lloh65:
	ldr	x9, [x9, _WEP_SMALL_KEY_LEN@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #1
	cinc	w9, w8, gt
	stp	w9, w8, [x19, #104]
	b	LBB0_12
LBB0_11:
	str	xzr, [x19, #104]
LBB0_12:
	ldr	w0, [x19, #76]
	bl	_cpu_to_le16
	str	x0, [x19, #184]
	ldr	w0, [x19, #80]
	bl	_cpu_to_le16
	str	x0, [x19, #176]
	ldr	w0, [x19, #172]
Lloh67:
	adrp	x8, _hw_rates@GOTPAGE
Lloh68:
	ldr	x8, [x8, _hw_rates@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #40]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x19, #112]
	ldr	w8, [x19, #232]
	str	w8, [x19, #168]
	ldr	x8, [x19, #224]
	str	x8, [x19, #160]
	ldr	w0, [x19, #152]
	ldr	w1, [x19, #216]
	ldr	w2, [x23]
	bl	_memcpy
	ldp	w1, w8, [x19, #208]
	str	w8, [x19, #148]
	ldr	x8, [x19, #8]
	str	x8, [x19, #120]
	ldr	w0, [x19, #144]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #24]
	str	x8, [x19, #128]
	ldr	w0, [x19, #204]
	bl	_cpu_to_le16
	str	x0, [x19, #136]
	ldr	w0, [x19, #200]
Lloh70:
	adrp	x21, _CMD_STARTUP@GOTPAGE
Lloh71:
	ldr	x21, [x21, _CMD_STARTUP@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, x20
	mov	w3, #104
	bl	_at76_set_card_command
	tbnz	w0, #31, LBB0_24
; %bb.13:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_at76_wait_completion
	ldr	w0, [x19, #84]
	bl	_eth_zero_addr
	str	wzr, [x19, #72]
	mov	x0, x19
	mov	w1, #1
	bl	_at76_set_radio
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.14:
Lloh72:
	adrp	x8, _CMD_RADIO_ON@GOTPAGE
Lloh73:
	ldr	x8, [x8, _CMD_RADIO_ON@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at76_wait_completion
LBB0_15:
	ldr	x1, [x19, #24]
	mov	x0, x19
	bl	_at76_set_preamble
	tbnz	w0, #31, LBB0_23
; %bb.16:
	ldr	w1, [x19, #80]
	mov	x0, x19
	bl	_at76_set_frag
	tbnz	w0, #31, LBB0_23
; %bb.17:
	ldr	w1, [x19, #76]
	mov	x0, x19
	bl	_at76_set_rts
	tbnz	w0, #31, LBB0_23
; %bb.18:
	ldr	x8, [x19, #40]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w1, eq
	mov	x0, x19
	bl	_at76_set_autorate_fallback
	tbnz	w0, #31, LBB0_23
; %bb.19:
	mov	x0, x19
	bl	_at76_set_pm_mode
	tbnz	w0, #31, LBB0_23
; %bb.20:
Lloh75:
	adrp	x8, _at76_debug@GOTPAGE
Lloh76:
	ldr	x8, [x8, _at76_debug@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
Lloh78:
	adrp	x9, _DBG_MIB@GOTPAGE
Lloh79:
	ldr	x9, [x9, _DBG_MIB@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_at76_dump_mib_mac
	mov	x0, x19
	bl	_at76_dump_mib_mac_addr
	mov	x0, x19
	bl	_at76_dump_mib_mac_mgmt
	mov	x0, x19
	bl	_at76_dump_mib_mac_wep
	mov	x0, x19
	bl	_at76_dump_mib_mdomain
	mov	x0, x19
	bl	_at76_dump_mib_phy
	mov	x0, x19
	bl	_at76_dump_mib_local
LBB0_22:
	mov	w20, #0
	b	LBB0_25
LBB0_23:
	mov	x20, x0
	b	LBB0_25
LBB0_24:
	mov	x20, x0
	ldr	x8, [x19, #88]
	ldr	w0, [x8]
Lloh81:
	adrp	x1, l_.str.17@PAGE
Lloh82:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x2, x20
	bl	_wiphy_err
LBB0_25:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh81, Lloh82
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_PARAMS,4,2                 ; @DBG_PARAMS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s param: ssid %.*s (%*phD) mode %s ch %d wep %s key %d keylen %d"

	.comm	_IW_ESSID_MAX_SIZE,4,2          ; @IW_ESSID_MAX_SIZE
	.comm	_IW_MODE_ADHOC,8,3              ; @IW_MODE_ADHOC
l_.str.1:                               ; @.str.1
	.asciz	"adhoc"

l_.str.2:                               ; @.str.2
	.asciz	"infra"

l_.str.3:                               ; @.str.3
	.asciz	"enabled"

l_.str.4:                               ; @.str.4
	.asciz	"disabled"

l_.str.5:                               ; @.str.5
	.asciz	"%s param: preamble %s rts %d retry %d frag %d txrate %s auth_mode %d"

	.comm	_preambles,8,3                  ; @preambles
	.comm	_TX_RATE_1MBIT,8,3              ; @TX_RATE_1MBIT
l_.str.6:                               ; @.str.6
	.asciz	"1MBit"

	.comm	_TX_RATE_2MBIT,8,3              ; @TX_RATE_2MBIT
l_.str.7:                               ; @.str.7
	.asciz	"2MBit"

	.comm	_TX_RATE_5_5MBIT,8,3            ; @TX_RATE_5_5MBIT
l_.str.8:                               ; @.str.8
	.asciz	"5.5MBit"

	.comm	_TX_RATE_11MBIT,8,3             ; @TX_RATE_11MBIT
l_.str.9:                               ; @.str.9
	.asciz	"11MBit"

	.comm	_TX_RATE_AUTO,8,3               ; @TX_RATE_AUTO
l_.str.10:                              ; @.str.10
	.asciz	"auto"

l_.str.11:                              ; @.str.11
	.asciz	"<invalid>"

l_.str.12:                              ; @.str.12
	.asciz	"%s param: pm_mode %d pm_period %d auth_mode %s scan_times %d %d scan_mode %s"

	.comm	_WLAN_AUTH_OPEN,8,3             ; @WLAN_AUTH_OPEN
l_.str.13:                              ; @.str.13
	.asciz	"open"

l_.str.14:                              ; @.str.14
	.asciz	"shared_secret"

	.comm	_SCAN_TYPE_ACTIVE,8,3           ; @SCAN_TYPE_ACTIVE
l_.str.15:                              ; @.str.15
	.asciz	"active"

l_.str.16:                              ; @.str.16
	.asciz	"passive"

	.comm	_WEP_SMALL_KEY_LEN,8,3          ; @WEP_SMALL_KEY_LEN
	.comm	_hw_rates,4,2                   ; @hw_rates
	.comm	_CMD_STARTUP,4,2                ; @CMD_STARTUP
l_.str.17:                              ; @.str.17
	.asciz	"at76_set_card_command failed: %d\n"

	.comm	_CMD_RADIO_ON,4,2               ; @CMD_RADIO_ON
	.comm	_at76_debug,4,2                 ; @at76_debug
	.comm	_DBG_MIB,4,2                    ; @DBG_MIB
	.no_dead_strip	_at76_startup_device
.subsections_via_symbols
