	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_register_hw
_wl1271_register_hw:                    ## @wl1271_register_hw
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rdi
	callq	_dev_get_platdata
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	jne	LBB0_16
## %bb.1:
	movq	%rax, %r15
	xorl	%edx, %edx
	cmpl	$12, 4(%r14)
	movl	$0, %ebx
	jl	LBB0_3
## %bb.2:
	movq	24(%r14), %rax
	movl	44(%rax), %ecx
	shll	$16, %ecx
	movl	40(%rax), %ebx
	shll	$8, %ebx
	addl	%ecx, %ebx
	addl	24(%rax), %ebx
	movl	16(%rax), %edx
	movl	20(%rax), %ecx
	shll	$16, %ecx
	shll	$8, %edx
	addl	%ecx, %edx
	addl	12(%rax), %edx
LBB0_3:
	movl	%ebx, %eax
	orl	%edx, %eax
	jne	LBB0_5
## %bb.4:
	movl	8(%r14), %ebx
	movl	12(%r14), %edx
	incl	%edx
LBB0_5:
	cmpl	$14593470, %ebx                 ## imm = 0xDEADBE
	jne	LBB0_13
## %bb.6:
	cmpl	$15663104, %edx                 ## imm = 0xEF0000
	jne	LBB0_13
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_wl1271_warning
	movq	(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	_wl1271_warning
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_10:
	callq	_wl1271_warning
	movl	8(%r14), %ebx
	movl	12(%r14), %edx
	movl	%ebx, %eax
	orl	%edx, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	callq	_wl1271_warning
	movq	_WLCORE_TI_OUI_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_get_random_int
	movl	%eax, %edx
	jmp	LBB0_13
LBB0_12:
	incl	%edx
LBB0_13:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_wl12xx_derive_mac_addresses
	movl	16(%r14), %edi
	callq	_ieee80211_register_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movl	$1, (%r14)
	movq	%r14, %rdi
	callq	_wl1271_debugfs_init
	leaq	L_.str.7(%rip), %rdi
	callq	_wl1271_notice
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	callq	_wl1271_error
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Detected unconfigured mac address in nvs, derive from fuse instead."

L_.str.1:                               ## @.str.1
	.asciz	"wl18xx"

L_.str.2:                               ## @.str.2
	.asciz	"This default nvs file can be removed from the file system"

L_.str.3:                               ## @.str.3
	.asciz	"Your device performance is not optimized."

L_.str.4:                               ## @.str.4
	.asciz	"Please use the calibrator tool to configure your device."

L_.str.5:                               ## @.str.5
	.asciz	"Fuse mac address is zero. using random mac"

	.comm	_WLCORE_TI_OUI_ADDRESS,4,2      ## @WLCORE_TI_OUI_ADDRESS
L_.str.6:                               ## @.str.6
	.asciz	"unable to register mac80211 hw: %d"

L_.str.7:                               ## @.str.7
	.asciz	"loaded"

	.no_dead_strip	_wl1271_register_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_register_hw
_wl1271_register_hw:                    ; @wl1271_register_hw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x0, [x0, #32]
	bl	_dev_get_platdata
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_17
LBB0_2:
	mov	x21, x0
	ldr	w8, [x19, #4]
	cmp	w8, #12
	b.lt	LBB0_4
; %bb.3:
	ldr	x8, [x19, #24]
	ldp	w10, w9, [x8, #40]
	lsl	w10, w10, #8
	add	w9, w10, w9, lsl #16
	ldp	w11, w10, [x8, #20]
	add	w20, w9, w10
	ldp	w8, w9, [x8, #12]
	lsl	w9, w9, #8
	add	w9, w9, w11, lsl #16
	add	w2, w9, w8
	orr	w8, w20, w2
	cbz	w8, LBB0_5
	b	LBB0_6
LBB0_4:
	mov	w2, #0
	mov	w20, #0
	orr	w8, w20, w2
	cbnz	w8, LBB0_6
LBB0_5:
	ldp	w20, w8, [x19, #8]
	add	w2, w8, #1
LBB0_6:
	sub	w8, w20, #3562, lsl #12         ; =14589952
	cmp	w8, #3518
	b.ne	LBB0_14
; %bb.7:
	cmp	w2, #3824, lsl #12              ; =15663104
	b.ne	LBB0_14
; %bb.8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1271_warning
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.9:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_wl1271_warning
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	bl	_wl1271_warning
	ldp	w20, w8, [x19, #8]
	orr	w9, w20, w8
	cbnz	w9, LBB0_13
; %bb.12:
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_wl1271_warning
Lloh12:
	adrp	x8, _WLCORE_TI_OUI_ADDRESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WLCORE_TI_OUI_ADDRESS@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	bl	_get_random_int
	mov	x2, x0
	b	LBB0_14
LBB0_13:
	add	w2, w8, #1
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	bl	_wl12xx_derive_mac_addresses
	ldr	w0, [x19, #16]
	bl	_ieee80211_register_hw
	mov	x20, x0
	tbnz	w0, #31, LBB0_16
; %bb.15:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_wl1271_debugfs_init
Lloh15:
	adrp	x0, l_.str.7@PAGE
Lloh16:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_wl1271_notice
	b	LBB0_17
LBB0_16:
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x20
	bl	_wl1271_error
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Detected unconfigured mac address in nvs, derive from fuse instead."

l_.str.1:                               ; @.str.1
	.asciz	"wl18xx"

l_.str.2:                               ; @.str.2
	.asciz	"This default nvs file can be removed from the file system"

l_.str.3:                               ; @.str.3
	.asciz	"Your device performance is not optimized."

l_.str.4:                               ; @.str.4
	.asciz	"Please use the calibrator tool to configure your device."

l_.str.5:                               ; @.str.5
	.asciz	"Fuse mac address is zero. using random mac"

	.comm	_WLCORE_TI_OUI_ADDRESS,4,2      ; @WLCORE_TI_OUI_ADDRESS
l_.str.6:                               ; @.str.6
	.asciz	"unable to register mac80211 hw: %d"

l_.str.7:                               ; @.str.7
	.asciz	"loaded"

	.no_dead_strip	_wl1271_register_hw
.subsections_via_symbols
