	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tango_attach_chip
_tango_attach_chip:                     ## @tango_attach_chip
	.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	%rdi, %rbx
	movq	_NAND_ECC_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rdi)
	movq	_NAND_ECC_BCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	movq	_FIELD_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	(%rbx), %edi
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DIV_ROUND_UP
	movl	%eax, 28(%rbx)
	movq	_tango_read_page_raw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_tango_write_page_raw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_tango_read_page@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_tango_write_page@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_tango_read_oob@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_tango_write_oob@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_ECC_HW,4,2                ## @NAND_ECC_HW
	.comm	_NAND_ECC_BCH,4,2               ## @NAND_ECC_BCH
	.comm	_FIELD_ORDER,4,2                ## @FIELD_ORDER
	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.comm	_tango_read_page_raw,4,2        ## @tango_read_page_raw
	.comm	_tango_write_page_raw,4,2       ## @tango_write_page_raw
	.comm	_tango_read_page,4,2            ## @tango_read_page
	.comm	_tango_write_page,4,2           ## @tango_write_page
	.comm	_tango_read_oob,4,2             ## @tango_read_oob
	.comm	_tango_write_oob,4,2            ## @tango_write_oob
	.no_dead_strip	_tango_attach_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tango_attach_chip
_tango_attach_chip:                     ; @tango_attach_chip
	.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, x0
Lloh0:
	adrp	x8, _NAND_ECC_HW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_ECC_HW@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NAND_ECC_BCH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NAND_ECC_BCH@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh6:
	adrp	x8, _FIELD_ORDER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FIELD_ORDER@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh8:
	ldr	w8, [x8]
	mul	w0, w8, w9
Lloh9:
	adrp	x8, _BITS_PER_BYTE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BITS_PER_BYTE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_DIV_ROUND_UP
Lloh12:
	adrp	x8, _tango_read_page_raw@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tango_read_page_raw@GOTPAGEOFF]
	str	w0, [x19, #28]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _tango_write_page_raw@GOTPAGE
Lloh16:
	ldr	x9, [x9, _tango_write_page_raw@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
Lloh18:
	adrp	x8, _tango_read_page@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tango_read_page@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _tango_write_page@GOTPAGE
Lloh22:
	ldr	x9, [x9, _tango_write_page@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
Lloh24:
	adrp	x8, _tango_read_oob@GOTPAGE
Lloh25:
	ldr	x8, [x8, _tango_read_oob@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _tango_write_oob@GOTPAGE
Lloh28:
	ldr	x9, [x9, _tango_write_oob@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_ECC_HW,4,2                ; @NAND_ECC_HW
	.comm	_NAND_ECC_BCH,4,2               ; @NAND_ECC_BCH
	.comm	_FIELD_ORDER,4,2                ; @FIELD_ORDER
	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.comm	_tango_read_page_raw,4,2        ; @tango_read_page_raw
	.comm	_tango_write_page_raw,4,2       ; @tango_write_page_raw
	.comm	_tango_read_page,4,2            ; @tango_read_page
	.comm	_tango_write_page,4,2           ; @tango_write_page
	.comm	_tango_read_oob,4,2             ; @tango_read_oob
	.comm	_tango_write_oob,4,2            ; @tango_write_oob
	.no_dead_strip	_tango_attach_chip
.subsections_via_symbols
