	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmu_boardrev_str             ## -- Begin function brcmu_boardrev_str
	.p2align	4, 0x90
_brcmu_boardrev_str:                    ## @brcmu_boardrev_str
	.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
	movq	%rsi, %rbx
	movl	%edi, %r8d
	cmpl	$255, %edi
	jg	LBB0_2
## %bb.1:
	movq	_BRCMU_BOARDREV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r8d, %eax
	shrb	$4, %al
	andl	$15, %r8d
	movzbl	%al, %ecx
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	movl	%r8d, %eax
	andl	$61440, %eax                    ## imm = 0xF000
	andl	$4095, %r8d                     ## imm = 0xFFF
	cmpl	$4096, %eax                     ## imm = 0x1000
	movq	_BRCMU_BOARDREV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %eax
	movl	$65, %ecx
	cmovel	%eax, %ecx
	leaq	L_.str.1(%rip), %rdx
LBB0_3:
	movq	%rbx, %rdi
	callq	_snprintf
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMU_BOARDREV_LEN,4,2         ## @BRCMU_BOARDREV_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d.%d"

L_.str.1:                               ## @.str.1
	.asciz	"%c%03x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmu_boardrev_str             ; -- Begin function brcmu_boardrev_str
	.p2align	2
_brcmu_boardrev_str:                    ; @brcmu_boardrev_str
	.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
	mov	x19, x1
	cmp	w0, #255
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _BRCMU_BOARDREV_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMU_BOARDREV_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ubfx	w3, w0, #4, #4
	and	w4, w0, #0xf
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
	and	w8, w0, #0xf000
Lloh5:
	adrp	x9, _BRCMU_BOARDREV_LEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BRCMU_BOARDREV_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	and	w4, w0, #0xfff
	mov	w9, #65
	mov	w10, #80
	cmp	w8, #1, lsl #12                 ; =4096
	csel	w3, w10, w9, eq
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_snprintf
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMU_BOARDREV_LEN,4,2         ; @BRCMU_BOARDREV_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d.%d"

l_.str.1:                               ; @.str.1
	.asciz	"%c%03x"

.subsections_via_symbols
