	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_validboardtype
_brcms_c_validboardtype:                ## @brcms_c_validboardtype
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %ebx
	movl	4(%rdi), %edi
	callq	_ai_get_boardvendor
	movq	%rax, %rcx
	movq	_PCI_VENDOR_ID_BROADCOM@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	cmpl	$256, %ebx                      ## imm = 0x100
	jl	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	shrl	$12, %eax
	andl	$15, %eax
	movl	%ebx, %ecx
	shrl	$8, %ecx
	andl	$15, %ecx
	movl	%ebx, %edx
	andl	$14, %edx
	decl	%eax
	cmpl	$2, %eax
	setb	%sil
	cmpl	$10, %ecx
	setb	%al
	testl	%ecx, %ecx
	setne	%cl
	andb	%al, %cl
	andb	%sil, %cl
	andl	$224, %ebx
	cmpl	$145, %ebx
	setb	%al
	cmpl	$10, %edx
	setb	%dl
	andb	%al, %dl
	andb	%cl, %dl
	movzbl	%dl, %eax
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_BROADCOM,8,3     ## @PCI_VENDOR_ID_BROADCOM
	.no_dead_strip	_brcms_c_validboardtype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_validboardtype
_brcms_c_validboardtype:                ; @brcms_c_validboardtype
	.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
	ldp	w19, w0, [x0]
	bl	_ai_get_boardvendor
Lloh0:
	adrp	x8, _PCI_VENDOR_ID_BROADCOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_VENDOR_ID_BROADCOM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	cbz	w19, LBB0_4
; %bb.2:
	cmp	w19, #256
	b.ge	LBB0_5
LBB0_3:
	mov	w0, #1
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ubfx	w8, w19, #12, #4
	ubfx	w9, w19, #8, #4
	and	w10, w19, #0xe
	sub	w8, w8, #1
	cmp	w8, #2
	ccmp	w9, #10, #2, lo
	ccmp	w9, #0, #4, lo
	and	w8, w19, #0xe0
	mov	w9, #145
	ccmp	w8, w9, #2, ne
	ccmp	w10, #10, #2, lo
	cset	w0, lo
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_BROADCOM,8,3     ; @PCI_VENDOR_ID_BROADCOM
	.no_dead_strip	_brcms_c_validboardtype
.subsections_via_symbols
