	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_set_smbus_ops
_idt_set_smbus_ops:                     ## @idt_set_smbus_ops
	.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, %r15
	movq	16(%rdi), %r14
	movq	8(%r14), %rbx
	movq	_I2C_FUNC_SMBUS_READ_BLOCK_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_idt_smb_read_block@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	_I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_idt_smb_read_i2c_block@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_9:
	movq	_I2C_FUNC_SMBUS_WRITE_BLOCK_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	_idt_smb_write_block@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_11
LBB0_16:
	movq	_I2C_FUNC_SMBUS_WRITE_I2C_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_idt_smb_write_i2c_block@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	leaq	L_.str.6(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_22:
	movq	%r15, %rdi
	callq	_mutex_init
	xorl	%eax, %eax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_I2C_FUNC_SMBUS_READ_WORD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	_I2C_FUNC_SMBUS_READ_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	_idt_smb_read_word@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_18:
	movq	_I2C_FUNC_SMBUS_WRITE_WORD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_24
## %bb.19:
	movq	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	movq	_idt_smb_write_word@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_21
LBB0_12:
	movq	_I2C_FUNC_SMBUS_READ_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_idt_smb_read_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_9
LBB0_24:
	movq	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_idt_smb_write_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	leaq	L_.str.8(%rip), %rsi
LBB0_21:
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_22
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_26:
	leaq	L_.str.9(%rip), %rsi
LBB0_15:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EPFNOSUPPORT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_READ_BLOCK_DATA,4,2 ## @I2C_FUNC_SMBUS_READ_BLOCK_DATA
	.comm	_idt_smb_read_block,4,2         ## @idt_smb_read_block
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMBus block-read op chosen"

	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ## @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.comm	_idt_smb_read_i2c_block,4,2     ## @idt_smb_read_i2c_block
L_.str.1:                               ## @.str.1
	.asciz	"SMBus i2c-block-read op chosen"

	.comm	_I2C_FUNC_SMBUS_READ_WORD_DATA,4,2 ## @I2C_FUNC_SMBUS_READ_WORD_DATA
	.comm	_I2C_FUNC_SMBUS_READ_BYTE_DATA,4,2 ## @I2C_FUNC_SMBUS_READ_BYTE_DATA
	.comm	_idt_smb_read_word,4,2          ## @idt_smb_read_word
L_.str.2:                               ## @.str.2
	.asciz	"Use slow word/byte SMBus read ops"

	.comm	_idt_smb_read_byte,4,2          ## @idt_smb_read_byte
L_.str.3:                               ## @.str.3
	.asciz	"Use slow byte SMBus read op"

L_.str.4:                               ## @.str.4
	.asciz	"No supported SMBus read op"

	.comm	_EPFNOSUPPORT,4,2               ## @EPFNOSUPPORT
	.comm	_I2C_FUNC_SMBUS_WRITE_BLOCK_DATA,4,2 ## @I2C_FUNC_SMBUS_WRITE_BLOCK_DATA
	.comm	_idt_smb_write_block,4,2        ## @idt_smb_write_block
L_.str.5:                               ## @.str.5
	.asciz	"SMBus block-write op chosen"

	.comm	_I2C_FUNC_SMBUS_WRITE_I2C_BLOCK,4,2 ## @I2C_FUNC_SMBUS_WRITE_I2C_BLOCK
	.comm	_idt_smb_write_i2c_block,4,2    ## @idt_smb_write_i2c_block
L_.str.6:                               ## @.str.6
	.asciz	"SMBus i2c-block-write op chosen"

	.comm	_I2C_FUNC_SMBUS_WRITE_WORD_DATA,4,2 ## @I2C_FUNC_SMBUS_WRITE_WORD_DATA
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA,4,2 ## @I2C_FUNC_SMBUS_WRITE_BYTE_DATA
	.comm	_idt_smb_write_word,4,2         ## @idt_smb_write_word
L_.str.7:                               ## @.str.7
	.asciz	"Use slow word/byte SMBus write op"

	.comm	_idt_smb_write_byte,4,2         ## @idt_smb_write_byte
L_.str.8:                               ## @.str.8
	.asciz	"Use slow byte SMBus write op"

L_.str.9:                               ## @.str.9
	.asciz	"No supported SMBus write op"

	.no_dead_strip	_idt_set_smbus_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt_set_smbus_ops
_idt_set_smbus_ops:                     ; @idt_set_smbus_ops
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	x21, [x20, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_READ_BLOCK_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_READ_BLOCK_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_check_functionality
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _idt_smb_read_block@GOTPAGE
Lloh4:
	ldr	x8, [x8, _idt_smb_read_block@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x8, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_READ_I2C_BLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_check_functionality
	cbz	x0, LBB0_12
; %bb.3:
Lloh11:
	adrp	x8, _idt_smb_read_i2c_block@GOTPAGE
Lloh12:
	ldr	x8, [x8, _idt_smb_read_i2c_block@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_dev_dbg
LBB0_5:
Lloh16:
	adrp	x8, _I2C_FUNC_SMBUS_WRITE_BLOCK_DATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WRITE_BLOCK_DATA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_check_functionality
	cbz	x0, LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _idt_smb_write_block@GOTPAGE
Lloh20:
	ldr	x8, [x8, _idt_smb_write_block@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh24:
	adrp	x8, _I2C_FUNC_SMBUS_WRITE_I2C_BLOCK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WRITE_I2C_BLOCK@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_check_functionality
	cbz	x0, LBB0_15
; %bb.8:
Lloh27:
	adrp	x8, _idt_smb_write_i2c_block@GOTPAGE
Lloh28:
	ldr	x8, [x8, _idt_smb_write_i2c_block@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_dev_dbg
LBB0_10:
	mov	x0, x19
	bl	_mutex_init
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh32:
	adrp	x8, _I2C_FUNC_SMBUS_READ_WORD_DATA@GOTPAGE
Lloh33:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_READ_WORD_DATA@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_check_functionality
Lloh35:
	adrp	x22, _I2C_FUNC_SMBUS_READ_BYTE_DATA@GOTPAGE
Lloh36:
	ldr	x22, [x22, _I2C_FUNC_SMBUS_READ_BYTE_DATA@GOTPAGEOFF]
	cbz	x0, LBB0_18
; %bb.13:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_i2c_check_functionality
	cbz	x0, LBB0_18
; %bb.14:
Lloh37:
	adrp	x8, _idt_smb_read_word@GOTPAGE
Lloh38:
	ldr	x8, [x8, _idt_smb_read_word@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_15:
Lloh42:
	adrp	x8, _I2C_FUNC_SMBUS_WRITE_WORD_DATA@GOTPAGE
Lloh43:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WRITE_WORD_DATA@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_check_functionality
Lloh45:
	adrp	x22, _I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPAGE
Lloh46:
	ldr	x22, [x22, _I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPAGEOFF]
	cbz	x0, LBB0_21
; %bb.16:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_i2c_check_functionality
	cbz	x0, LBB0_21
; %bb.17:
Lloh47:
	adrp	x8, _idt_smb_write_word@GOTPAGE
Lloh48:
	ldr	x8, [x8, _idt_smb_write_word@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh50:
	adrp	x1, l_.str.7@PAGE
Lloh51:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_23
LBB0_18:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_i2c_check_functionality
	cbz	x0, LBB0_24
; %bb.19:
Lloh52:
	adrp	x8, _idt_smb_read_byte@GOTPAGE
Lloh53:
	ldr	x8, [x8, _idt_smb_read_byte@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh55:
	adrp	x1, l_.str.3@PAGE
Lloh56:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_20:
	mov	x0, x20
	bl	_dev_warn
	b	LBB0_5
LBB0_21:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_i2c_check_functionality
	cbz	x0, LBB0_25
; %bb.22:
Lloh57:
	adrp	x8, _idt_smb_write_byte@GOTPAGE
Lloh58:
	ldr	x8, [x8, _idt_smb_write_byte@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh60:
	adrp	x1, l_.str.8@PAGE
Lloh61:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_23:
	mov	x0, x20
	bl	_dev_warn
	b	LBB0_10
LBB0_24:
Lloh62:
	adrp	x1, l_.str.4@PAGE
Lloh63:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_26
LBB0_25:
Lloh64:
	adrp	x1, l_.str.9@PAGE
Lloh65:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_26:
	mov	x0, x20
	bl	_dev_err
Lloh66:
	adrp	x8, _EPFNOSUPPORT@GOTPAGE
Lloh67:
	ldr	x8, [x8, _EPFNOSUPPORT@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_READ_BLOCK_DATA,4,2 ; @I2C_FUNC_SMBUS_READ_BLOCK_DATA
	.comm	_idt_smb_read_block,4,2         ; @idt_smb_read_block
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMBus block-read op chosen"

	.comm	_I2C_FUNC_SMBUS_READ_I2C_BLOCK,4,2 ; @I2C_FUNC_SMBUS_READ_I2C_BLOCK
	.comm	_idt_smb_read_i2c_block,4,2     ; @idt_smb_read_i2c_block
l_.str.1:                               ; @.str.1
	.asciz	"SMBus i2c-block-read op chosen"

	.comm	_I2C_FUNC_SMBUS_READ_WORD_DATA,4,2 ; @I2C_FUNC_SMBUS_READ_WORD_DATA
	.comm	_I2C_FUNC_SMBUS_READ_BYTE_DATA,4,2 ; @I2C_FUNC_SMBUS_READ_BYTE_DATA
	.comm	_idt_smb_read_word,4,2          ; @idt_smb_read_word
l_.str.2:                               ; @.str.2
	.asciz	"Use slow word/byte SMBus read ops"

	.comm	_idt_smb_read_byte,4,2          ; @idt_smb_read_byte
l_.str.3:                               ; @.str.3
	.asciz	"Use slow byte SMBus read op"

l_.str.4:                               ; @.str.4
	.asciz	"No supported SMBus read op"

	.comm	_EPFNOSUPPORT,4,2               ; @EPFNOSUPPORT
	.comm	_I2C_FUNC_SMBUS_WRITE_BLOCK_DATA,4,2 ; @I2C_FUNC_SMBUS_WRITE_BLOCK_DATA
	.comm	_idt_smb_write_block,4,2        ; @idt_smb_write_block
l_.str.5:                               ; @.str.5
	.asciz	"SMBus block-write op chosen"

	.comm	_I2C_FUNC_SMBUS_WRITE_I2C_BLOCK,4,2 ; @I2C_FUNC_SMBUS_WRITE_I2C_BLOCK
	.comm	_idt_smb_write_i2c_block,4,2    ; @idt_smb_write_i2c_block
l_.str.6:                               ; @.str.6
	.asciz	"SMBus i2c-block-write op chosen"

	.comm	_I2C_FUNC_SMBUS_WRITE_WORD_DATA,4,2 ; @I2C_FUNC_SMBUS_WRITE_WORD_DATA
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA,4,2 ; @I2C_FUNC_SMBUS_WRITE_BYTE_DATA
	.comm	_idt_smb_write_word,4,2         ; @idt_smb_write_word
l_.str.7:                               ; @.str.7
	.asciz	"Use slow word/byte SMBus write op"

	.comm	_idt_smb_write_byte,4,2         ; @idt_smb_write_byte
l_.str.8:                               ; @.str.8
	.asciz	"Use slow byte SMBus write op"

l_.str.9:                               ; @.str.9
	.asciz	"No supported SMBus write op"

	.no_dead_strip	_idt_set_smbus_ops
.subsections_via_symbols
