	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smist_identify
_smist_identify:                        ## @smist_identify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_resource_disabled
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	_cpu_vendor_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CPU_VENDOR_INTEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.2:
	movq	_cpu_id@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	$32, %eax
	andl	$4080, %eax                     ## imm = 0xFF0
	cmpl	$1696, %eax                     ## imm = 0x6A0
	jne	LBB0_11
## %bb.3:
	movq	_piix4_pci_devices@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.4:
	addq	$16, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%rbx), %esi
	movl	-4(%rbx), %edi
	callq	_pci_find_device
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%rbx)
	leaq	16(%rbx), %rbx
	jne	LBB0_5
	jmp	LBB0_11
LBB0_7:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	-16(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_device_find_child
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	$30, %esi
	movl	$-1, %ecx
	callq	_BUS_ADD_CHILD
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_device_printf                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ichst"

	.comm	_cpu_vendor_id,8,3              ## @cpu_vendor_id
	.comm	_CPU_VENDOR_INTEL,8,3           ## @CPU_VENDOR_INTEL
	.comm	_cpu_id,4,2                     ## @cpu_id
	.comm	_piix4_pci_devices,8,3          ## @piix4_pci_devices
	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.1:                               ## @.str.1
	.asciz	"smist: found supported isa bridge %s\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"smist: add child failed\n"

	.no_dead_strip	_smist_identify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smist_identify
_smist_identify:                        ; @smist_identify
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_resource_disabled
	cbnz	x0, LBB0_11
; %bb.1:
Lloh2:
	adrp	x8, _cpu_vendor_id@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cpu_vendor_id@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _CPU_VENDOR_INTEL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CPU_VENDOR_INTEL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.2:
Lloh8:
	adrp	x8, _cpu_id@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cpu_id@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w8, w8, #0x20
	and	w8, w8, #0xff0
	cmp	w8, #1696
	b.ne	LBB0_11
; %bb.3:
Lloh11:
	adrp	x8, _piix4_pci_devices@GOTPAGE
Lloh12:
	ldr	x8, [x8, _piix4_pci_devices@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_11
; %bb.4:
	add	x20, x8, #16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x20, #-8]
	bl	_pci_find_device
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20], #16
	cbnz	x8, LBB0_5
	b	LBB0_11
LBB0_7:
Lloh14:
	adrp	x8, _bootverbose@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldur	x1, [x20, #-16]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_9:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #-1
	bl	_device_find_child
	cbnz	x0, LBB0_11
; %bb.10:
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #30
	mov	w3, #-1
	bl	_BUS_ADD_CHILD
	cbz	x0, LBB0_12
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_device_printf
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ichst"

	.comm	_cpu_vendor_id,8,3              ; @cpu_vendor_id
	.comm	_CPU_VENDOR_INTEL,8,3           ; @CPU_VENDOR_INTEL
	.comm	_cpu_id,4,2                     ; @cpu_id
	.comm	_piix4_pci_devices,8,3          ; @piix4_pci_devices
	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.1:                               ; @.str.1
	.asciz	"smist: found supported isa bridge %s\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"smist: add child failed\n"

	.no_dead_strip	_smist_identify
.subsections_via_symbols
