	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibnd_get_chassis_type          ## -- Begin function ibnd_get_chassis_type
	.p2align	4, 0x90
_ibnd_get_chassis_type:                 ## @ibnd_get_chassis_type
	.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
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 20(%rdi)
	je	LBB0_8
## %bb.2:
	movl	16(%rbx), %edi
	movq	_IB_NODE_VENDORID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_mad_get_field
	cmpl	$129, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.4:
	movq	(%rbx), %rax
	movq	_UNRESOLVED_CT@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.5:
	movq	_ISR4200_CT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	ja	LBB0_10
## %bb.6:
	movq	_ChassisTypeStr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r14
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_IBND_DEBUG
LBB0_8:
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	8(%rbx), %rax
	xorl	%r14d, %r14d
	cmpb	$0, (%rax)
	cmovneq	%rax, %r14
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node parameter NULL\n"

	.comm	_IB_NODE_VENDORID_F,4,2         ## @IB_NODE_VENDORID_F
	.comm	_UNRESOLVED_CT,8,3              ## @UNRESOLVED_CT
	.comm	_ISR4200_CT,8,3                 ## @ISR4200_CT
	.comm	_ChassisTypeStr,8,3             ## @ChassisTypeStr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibnd_get_chassis_type          ; -- Begin function ibnd_get_chassis_type
	.p2align	2
_ibnd_get_chassis_type:                 ; @ibnd_get_chassis_type
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #20]
	cbz	w8, LBB0_7
; %bb.2:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _IB_NODE_VENDORID_F@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_NODE_VENDORID_F@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_mad_get_field
	cmp	w0, #129
	b.eq	LBB0_9
; %bb.3:
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _UNRESOLVED_CT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UNRESOLVED_CT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _ISR4200_CT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ISR4200_CT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #2, ne
	b.hi	LBB0_7
; %bb.5:
Lloh9:
	adrp	x9, _ChassisTypeStr@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ChassisTypeStr@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x0, [x9, x8, lsl #3]
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IBND_DEBUG
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x8, [x19, #8]
	ldrb	w9, [x8]
	cmp	w9, #0
	csel	x0, xzr, x8, eq
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node parameter NULL\n"

	.comm	_IB_NODE_VENDORID_F,4,2         ; @IB_NODE_VENDORID_F
	.comm	_UNRESOLVED_CT,8,3              ; @UNRESOLVED_CT
	.comm	_ISR4200_CT,8,3                 ; @ISR4200_CT
	.comm	_ChassisTypeStr,8,3             ; @ChassisTypeStr
.subsections_via_symbols
