	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function platform_detect
_platform_detect:                       ## @platform_detect
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-48(%rbp), %rsi
	movl	$20, %edx
	callq	_bcm47xx_nvram_getenv
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_startswith
	movl	$2, %ecx
	testq	%rax, %rax
	jne	LBB0_12
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	leaq	-48(%rbp), %rsi
	movl	$20, %edx
	callq	_bcm47xx_nvram_getenv
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_simple_strtoul
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_3:
                                        ## implicit-def: $r14d
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	leaq	-48(%rbp), %rsi
	movl	$20, %edx
	callq	_bcm47xx_nvram_getenv
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_simple_strtoul
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_6:
                                        ## implicit-def: $ebx
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	leaq	-48(%rbp), %rsi
	movl	$20, %edx
	callq	_bcm47xx_nvram_getenv
	testq	%rax, %rax
	js	LBB0_13
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_startswith
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	testl	%r14d, %r14d
	jne	LBB0_13
## %bb.11:
	movl	$4, %ecx
	cmpl	$1, %ebx
	jne	LBB0_13
LBB0_12:
	movq	_sda_index@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	_scl_index@GOTPCREL(%rip), %rax
	movl	$5, (%rax)
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"model_no"

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

	.comm	_sda_index,4,2                  ## @sda_index
	.comm	_scl_index,4,2                  ## @scl_index
L_.str.2:                               ## @.str.2
	.asciz	"et0phyaddr"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"WL300-"

	.no_dead_strip	_platform_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function platform_detect
_platform_detect:                       ; @platform_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #4
	mov	w2, #20
	bl	_bcm47xx_nvram_getenv
	tbnz	x0, #63, LBB0_3
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #4
	bl	_startswith
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #2
	b	LBB0_14
LBB0_3:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #4
	mov	w2, #20
	bl	_bcm47xx_nvram_getenv
	tbnz	x0, #63, LBB0_5
; %bb.4:
	add	x0, sp, #4
	mov	x1, #0
	mov	w2, #0
	bl	_simple_strtoul
	mov	x19, x0
	b	LBB0_6
LBB0_5:
                                        ; implicit-def: $w19
LBB0_6:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #4
	mov	w2, #20
	bl	_bcm47xx_nvram_getenv
	tbnz	x0, #63, LBB0_8
; %bb.7:
	add	x0, sp, #4
	mov	x1, #0
	mov	w2, #0
	bl	_simple_strtoul
	mov	x20, x0
	b	LBB0_9
LBB0_8:
                                        ; implicit-def: $w20
LBB0_9:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x1, sp, #4
	mov	w2, #20
	bl	_bcm47xx_nvram_getenv
	tbnz	x0, #63, LBB0_15
; %bb.10:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #4
	bl	_startswith
	cbz	x0, LBB0_15
; %bb.11:
	cbnz	w19, LBB0_15
; %bb.12:
	cmp	w20, #1
	b.ne	LBB0_15
; %bb.13:
	mov	w8, #4
LBB0_14:
Lloh15:
	adrp	x9, _sda_index@GOTPAGE
Lloh16:
	ldr	x9, [x9, _sda_index@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
Lloh18:
	adrp	x8, _scl_index@GOTPAGE
Lloh19:
	ldr	x8, [x8, _scl_index@GOTPAGEOFF]
	mov	w9, #5
Lloh20:
	str	w9, [x8]
LBB0_15:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"model_no"

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

	.comm	_sda_index,4,2                  ; @sda_index
	.comm	_scl_index,4,2                  ; @scl_index
l_.str.2:                               ; @.str.2
	.asciz	"et0phyaddr"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"WL300-"

	.no_dead_strip	_platform_detect
.subsections_via_symbols
