	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmnand_print_cfg
_brcmnand_print_cfg:                    ## @brcmnand_print_cfg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	32(%rdx), %rdx
	shrq	$20, %rdx
	movl	(%rbx), %ecx
	movl	4(%rbx), %eax
	sarl	$10, %ecx
	movl	%eax, %r8d
	sarl	$10, %r8d
	cmpl	$1024, %eax                     ## imm = 0x400
	cmovll	%eax, %r8d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r9
	cmovgeq	%rax, %r9
	movl	28(%rbx), %r10d
	movl	24(%rbx), %r11d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	callq	_sprintf
	addq	$16, %rsp
	movslq	%eax, %r12
	addq	%r15, %r12
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_is_hamming_ecc
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movabsq	$18932787615067753, %rax        ## imm = 0x43434520676E69
	movq	%rax, 6(%r12)
	movabsq	$7956010533277671468, %rax      ## imm = 0x6E696D6D6148202C
	movq	%rax, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 16(%rbx)
	movl	8(%rbx), %edx
	je	LBB0_3
## %bb.2:
	addl	%edx, %edx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.5(%rip), %rsi
LBB0_4:
	movq	%r12, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lluMiB total, %uKiB blocks, %u%s pages, %uB OOB, %u-bit"

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

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

L_.str.3:                               ## @.str.3
	.asciz	", Hamming ECC"

L_.str.4:                               ## @.str.4
	.asciz	", BCH-%u (1KiB sector)"

L_.str.5:                               ## @.str.5
	.asciz	", BCH-%u"

	.no_dead_strip	_brcmnand_print_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmnand_print_cfg
_brcmnand_print_cfg:                    ; @brcmnand_print_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x2, #32]
	lsr	x8, x8, #20
	ldp	w9, w10, [x2]
	asr	w9, w9, #10
	asr	w11, w10, #10
Lloh0:
	adrp	x12, l_.str.2@PAGE
Lloh1:
	add	x12, x12, l_.str.2@PAGEOFF
	cmp	w10, #1023
	csel	w10, w11, w10, gt
Lloh2:
	adrp	x11, l_.str.1@PAGE
Lloh3:
	add	x11, x11, l_.str.1@PAGEOFF
	csel	x11, x11, x12, gt
	ldp	w13, w12, [x2, #24]
	stp	x12, x13, [sp, #32]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	add	x20, x20, w0, sxtw
	ldr	w0, [x21]
	mov	x1, x19
	bl	_is_hamming_ecc
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, l_.str.3@PAGE
Lloh7:
	add	x8, x8, l_.str.3@PAGEOFF
	ldr	x9, [x8]
	ldur	x8, [x8, #6]
	stur	x8, [x20, #6]
	str	x9, [x20]
	b	LBB0_6
LBB0_2:
	ldr	x9, [x19, #16]
	ldr	w8, [x19, #8]
	cbz	x9, LBB0_4
; %bb.3:
	lsl	w8, w8, #1
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_4:
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_sprintf
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lluMiB total, %uKiB blocks, %u%s pages, %uB OOB, %u-bit"

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

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

l_.str.3:                               ; @.str.3
	.asciz	", Hamming ECC"

l_.str.4:                               ; @.str.4
	.asciz	", BCH-%u (1KiB sector)"

l_.str.5:                               ; @.str.5
	.asciz	", BCH-%u"

	.no_dead_strip	_brcmnand_print_cfg
.subsections_via_symbols
