	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ismt_hw_init
_ismt_hw_init:                          ## @ismt_hw_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	8(%rdi), %edi
	movq	_ISMT_MSTR_MDBA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writeq
	movq	_ISMT_MCTRL_MEIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ISMT_MSTR_MCTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_ISMT_MSTR_MSTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_ISMT_MSTR_MDS@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_ISMT_MDS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_ISMT_DESC_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%edi
	orl	%ecx, %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_ISMT_SPGT@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movl	%eax, %r15d
	movq	_bus_speed@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	$99, %eax
	jle	LBB0_1
## %bb.5:
	cmpl	$100, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$400, %eax                      ## imm = 0x190
	je	LBB0_10
## %bb.7:
	cmpl	$1000, %eax                     ## imm = 0x3E8
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ISMT_SPGT_SPD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	orl	$130, %r15d
	jmp	LBB0_4
LBB0_1:
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	cmpl	$80, %eax
	jne	LBB0_11
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ISMT_SPGT_SPD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	orl	$128, %r15d
	jmp	LBB0_4
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ISMT_SPGT_SPD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	orl	$131, %r15d
	jmp	LBB0_4
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ISMT_SPGT_SPD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	orl	$129, %r15d
LBB0_4:
	movq	(%r13), %rsi
	addq	(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writel
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_12:
	movq	(%r13), %rdi
	addq	(%rbx), %rdi
	callq	_readl
                                        ## kill: def $eax killed $eax def $rax
	movq	_ISMT_SPGT_SPD_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_14
## %bb.13:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	movl	$80, (%r12)
	movl	$80, %edx
	jmp	LBB0_19
LBB0_14:
	movl	(%r12), %edx
	jmp	LBB0_19
LBB0_17:
	movl	$400, (%r12)                    ## imm = 0x190
	movl	$400, %edx                      ## imm = 0x190
	jmp	LBB0_19
LBB0_18:
	movl	$1000, (%r12)                   ## imm = 0x3E8
	movl	$1000, %edx                     ## imm = 0x3E8
	jmp	LBB0_19
LBB0_16:
	movl	$100, (%r12)
	movl	$100, %edx
LBB0_19:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_ISMT_MSTR_MDBA,8,3             ## @ISMT_MSTR_MDBA
	.comm	_ISMT_MCTRL_MEIE,4,2            ## @ISMT_MCTRL_MEIE
	.comm	_ISMT_MSTR_MCTRL,8,3            ## @ISMT_MSTR_MCTRL
	.comm	_ISMT_MSTR_MSTS,8,3             ## @ISMT_MSTR_MSTS
	.comm	_ISMT_MSTR_MDS,8,3              ## @ISMT_MSTR_MDS
	.comm	_ISMT_MDS_MASK,4,2              ## @ISMT_MDS_MASK
	.comm	_ISMT_DESC_ENTRIES,4,2          ## @ISMT_DESC_ENTRIES
	.comm	_ISMT_SPGT,8,3                  ## @ISMT_SPGT
	.comm	_bus_speed,4,2                  ## @bus_speed
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting SMBus clock to 80 kHz\n"

	.comm	_ISMT_SPGT_SPD_MASK,4,2         ## @ISMT_SPGT_SPD_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Setting SMBus clock to 100 kHz\n"

L_.str.2:                               ## @.str.2
	.asciz	"Setting SMBus clock to 400 kHz\n"

L_.str.3:                               ## @.str.3
	.asciz	"Setting SMBus clock to 1000 kHz\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid SMBus clock speed, only 0, 80, 100, 400, and 1000 are valid\n"

L_.str.5:                               ## @.str.5
	.asciz	"SMBus clock is running at %d kHz\n"

	.no_dead_strip	_ismt_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ismt_hw_init
_ismt_hw_init:                          ; @ismt_hw_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w0, [x0, #8]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ISMT_MSTR_MDBA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISMT_MSTR_MDBA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeq
Lloh3:
	adrp	x8, _ISMT_MCTRL_MEIE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISMT_MCTRL_MEIE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _ISMT_MSTR_MCTRL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ISMT_MSTR_MCTRL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _ISMT_MSTR_MSTS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ISMT_MSTR_MSTS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20]
Lloh12:
	adrp	x21, _ISMT_MSTR_MDS@GOTPAGE
Lloh13:
	ldr	x21, [x21, _ISMT_MSTR_MDS@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh14:
	adrp	x8, _ISMT_MDS_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ISMT_MDS_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh17:
	adrp	x9, _ISMT_DESC_ENTRIES@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ISMT_DESC_ENTRIES@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	sub	w9, w9, #1
	orr	w0, w9, w8
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
Lloh20:
	adrp	x23, _ISMT_SPGT@GOTPAGE
Lloh21:
	ldr	x23, [x23, _ISMT_SPGT@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
Lloh22:
	adrp	x22, _bus_speed@GOTPAGE
Lloh23:
	ldr	x22, [x22, _bus_speed@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh24:
	adrp	x24, _ISMT_SPGT_SPD_MASK@GOTPAGE
Lloh25:
	ldr	x24, [x24, _ISMT_SPGT_SPD_MASK@GOTPAGEOFF]
	cmp	w8, #99
	b.le	LBB0_5
; %bb.1:
	cmp	w8, #100
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #400
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #1000
	b.ne	LBB0_12
; %bb.4:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x24]
	bic	w8, w21, w8
	mov	w9, #130
	b	LBB0_10
LBB0_5:
	cbz	w8, LBB0_13
; %bb.6:
	cmp	w8, #80
	b.ne	LBB0_12
; %bb.7:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x24]
	bic	w8, w21, w8
	orr	w0, w8, #0x80
	b	LBB0_11
LBB0_8:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x24]
	bic	w8, w21, w8
	mov	w9, #131
	b	LBB0_10
LBB0_9:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x24]
	bic	w8, w21, w8
	mov	w9, #129
LBB0_10:
	orr	w0, w8, w9
LBB0_11:
	ldr	x8, [x20]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_13
LBB0_12:
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_13:
	ldr	x8, [x20]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x24]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_16
; %bb.14:
Lloh36:
	adrp	x9, lJTI0_0@PAGE
Lloh37:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_15
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_15:
	mov	w8, #80
	b	LBB0_20
LBB0_16:
	ldr	w8, [x22]
	b	LBB0_21
LBB0_17:
	mov	w8, #400
	b	LBB0_20
LBB0_18:
	mov	w8, #1000
	b	LBB0_20
LBB0_19:
	mov	w8, #100
LBB0_20:
	str	w8, [x22]
LBB0_21:
	str	x8, [sp]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_18-LBB0_15)>>2
	.byte	(LBB0_19-LBB0_15)>>2
                                        ; -- End function
	.comm	_ISMT_MSTR_MDBA,8,3             ; @ISMT_MSTR_MDBA
	.comm	_ISMT_MCTRL_MEIE,4,2            ; @ISMT_MCTRL_MEIE
	.comm	_ISMT_MSTR_MCTRL,8,3            ; @ISMT_MSTR_MCTRL
	.comm	_ISMT_MSTR_MSTS,8,3             ; @ISMT_MSTR_MSTS
	.comm	_ISMT_MSTR_MDS,8,3              ; @ISMT_MSTR_MDS
	.comm	_ISMT_MDS_MASK,4,2              ; @ISMT_MDS_MASK
	.comm	_ISMT_DESC_ENTRIES,4,2          ; @ISMT_DESC_ENTRIES
	.comm	_ISMT_SPGT,8,3                  ; @ISMT_SPGT
	.comm	_bus_speed,4,2                  ; @bus_speed
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting SMBus clock to 80 kHz\n"

	.comm	_ISMT_SPGT_SPD_MASK,4,2         ; @ISMT_SPGT_SPD_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Setting SMBus clock to 100 kHz\n"

l_.str.2:                               ; @.str.2
	.asciz	"Setting SMBus clock to 400 kHz\n"

l_.str.3:                               ; @.str.3
	.asciz	"Setting SMBus clock to 1000 kHz\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid SMBus clock speed, only 0, 80, 100, 400, and 1000 are valid\n"

l_.str.5:                               ; @.str.5
	.asciz	"SMBus clock is running at %d kHz\n"

	.no_dead_strip	_ismt_hw_init
.subsections_via_symbols
