	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function it821x_dev_config
_it821x_dev_config:                     ## @it821x_dev_config
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_ATA_ID_PROD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	(%r14), %rdi
	movq	_ATA_ID_PROD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	movl	%ebx, %ecx
	callq	_ata_id_c_string
	cmpl	$256, 8(%r14)                   ## imm = 0x100
	jl	LBB0_2
## %bb.1:
	movl	$255, 8(%r14)
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	cmpl	$0, 588(%rax)
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rdx, %rcx
	movl	516(%rax), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_ata_dev_printk
	movq	(%r14), %rax
	cmpl	$1, 516(%rax)
	je	LBB0_5
## %bb.4:
	movl	584(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_5:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_6:
	movq	_ATA_HORKAGE_DIAGNOSTIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	12(%r14), %eax
	movq	_ATA_HORKAGE_BROKEN_HPA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 12(%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_ID_PROD_LEN,4,2            ## @ATA_ID_PROD_LEN
	.comm	_ATA_ID_PROD,4,2                ## @ATA_ID_PROD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Integrated Technology Express"

	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
L_.str.1:                               ## @.str.1
	.asciz	"%sRAID%d volume"

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

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"(%dK stripe)"

L_.str.5:                               ## @.str.5
	.asciz	".\n"

	.comm	_ATA_HORKAGE_DIAGNOSTIC,4,2     ## @ATA_HORKAGE_DIAGNOSTIC
	.comm	_ATA_HORKAGE_BROKEN_HPA,4,2     ## @ATA_HORKAGE_BROKEN_HPA
	.no_dead_strip	_it821x_dev_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function it821x_dev_config
_it821x_dev_config:                     ; @it821x_dev_config
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _ATA_ID_PROD_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_ID_PROD_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w3, w8, #1
	mov	x9, x3
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x3, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	ldr	x0, [x0]
Lloh8:
	adrp	x8, _ATA_ID_PROD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATA_ID_PROD@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_ata_id_c_string
	ldr	w8, [x19, #8]
	cmp	w8, #256
	b.lt	LBB0_2
; %bb.1:
	mov	w8, #255
	str	w8, [x19, #8]
LBB0_2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_6
; %bb.3:
Lloh13:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	x8, [x19]
Lloh16:
	adrp	x9, l_.str.2@PAGE
Lloh17:
	add	x9, x9, l_.str.2@PAGEOFF
	ldr	w10, [x8, #588]
Lloh18:
	adrp	x11, l_.str.3@PAGE
Lloh19:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	w10, #0
	csel	x3, x11, x9, eq
	ldr	w4, [x8, #516]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ata_dev_printk
	ldr	x8, [x19]
	ldr	w9, [x8, #516]
	cmp	w9, #1
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x8, #584]
	str	x8, [sp, #-16]!
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printk
	add	sp, sp, #16
LBB0_5:
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printk
LBB0_6:
Lloh26:
	adrp	x8, _ATA_HORKAGE_DIAGNOSTIC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ATA_HORKAGE_DIAGNOSTIC@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
Lloh29:
	adrp	x9, _ATA_HORKAGE_BROKEN_HPA@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ATA_HORKAGE_BROKEN_HPA@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #12]
	ldur	x8, [x29, #-24]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_ID_PROD_LEN,4,2            ; @ATA_ID_PROD_LEN
	.comm	_ATA_ID_PROD,4,2                ; @ATA_ID_PROD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Integrated Technology Express"

	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
l_.str.1:                               ; @.str.1
	.asciz	"%sRAID%d volume"

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

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"(%dK stripe)"

l_.str.5:                               ; @.str.5
	.asciz	".\n"

	.comm	_ATA_HORKAGE_DIAGNOSTIC,4,2     ; @ATA_HORKAGE_DIAGNOSTIC
	.comm	_ATA_HORKAGE_BROKEN_HPA,4,2     ; @ATA_HORKAGE_BROKEN_HPA
	.no_dead_strip	_it821x_dev_config
.subsections_via_symbols
