	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stub_xfer
_stub_xfer:                             ## @stub_xfer
	.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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%rsi, %r10
	movq	_MAX_CHIPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_6
## %bb.1:
	movq	%r8, %r14
	movq	16(%rbp), %r8
	movq	_chip_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$3, %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r10, %rdx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rbx
	cmpq	%rbx, %rsi
	jne	LBB0_2
	jmp	LBB0_6
LBB0_5:
	movq	_stub_chips@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	addl	$-128, %r9d
	cmpl	$3, %r9d
	ja	LBB0_21
## %bb.8:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r9,4), %rdx
	addq	%rax, %rdx
	jmpq	*%rdx
LBB0_17:
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpb	%cl, (%rax)
	jne	LBB0_19
## %bb.18:
	movl	(%r8), %eax
	movq	8(%r15,%rbx,2), %rcx
	movl	%eax, (%rcx,%r14,4)
	movl	(%r8), %ecx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_20
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_22:
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rdx
	movq	8(%r15,%rbx,2), %rsi
	movl	(%rsi,%r14,4), %eax
	cmpb	%cl, (%rdx)
	jne	LBB0_15
## %bb.14:
	andl	$65280, %eax                    ## imm = 0xFF00
	movl	%eax, (%rsi,%r14,4)
	orl	(%r8), %eax
	movl	%eax, (%rsi,%r14,4)
	movl	(%r8), %ecx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_16
LBB0_10:
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpb	%cl, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	%r14, (%r15,%rbx,2)
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r10, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_23
LBB0_21:
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_9:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r10, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_23
LBB0_19:
	movq	8(%r15,%rbx,2), %rax
	movl	(%rax,%r14,4), %ecx
	movl	%ecx, (%r8)
	leaq	L_.str.6(%rip), %rsi
LBB0_20:
	xorl	%ebx, %ebx
	movq	%r10, %rdx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_23
LBB0_15:
	movzbl	%al, %ecx
	movl	%ecx, (%r8)
	leaq	L_.str.4(%rip), %rsi
LBB0_16:
	movq	%r10, %rdx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_dev_dbg
	incq	%r14
	movq	%r14, (%r15,%rbx,2)
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_12:
	movq	(%r15,%rbx,2), %rax
	movq	8(%r15,%rbx,2), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%r15,%rbx,2)
	movzbl	(%rcx,%rax,4), %ecx
	movl	%ecx, (%r8)
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r10, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_23
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_MAX_CHIPS,4,2                  ## @MAX_CHIPS
	.comm	_chip_addr,8,3                  ## @chip_addr
	.comm	_stub_chips,8,3                 ## @stub_chips
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smbus quick - addr 0x%02x\n"

	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"smbus byte - addr 0x%02x, wrote 0x%02x.\n"

L_.str.2:                               ## @.str.2
	.asciz	"smbus byte - addr 0x%02x, read  0x%02x.\n"

L_.str.3:                               ## @.str.3
	.asciz	"smbus byte data - addr 0x%02x, wrote 0x%02x at 0x%02x.\n"

L_.str.4:                               ## @.str.4
	.asciz	"smbus byte data - addr 0x%02x, read  0x%02x at 0x%02x.\n"

L_.str.5:                               ## @.str.5
	.asciz	"smbus word data - addr 0x%02x, wrote 0x%04x at 0x%02x.\n"

L_.str.6:                               ## @.str.6
	.asciz	"smbus word data - addr 0x%02x, read  0x%04x at 0x%02x.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Unsupported I2C/SMBus command\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_stub_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stub_xfer
_stub_xfer:                             ; @stub_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, _MAX_CHIPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CHIPS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x4
	mov	x20, #0
	and	w8, w3, #0xff
Lloh3:
	adrp	x9, _chip_addr@GOTPAGE
Lloh4:
	ldr	x9, [x9, _chip_addr@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	lsl	x10, x10, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x11, x1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #16
	add	x9, x9, #8
	cmp	x10, x20
	b.ne	LBB0_2
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x9, _stub_chips@GOTPAGE
Lloh7:
	ldr	x9, [x9, _stub_chips@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x9]
	cbz	x21, LBB0_10
; %bb.6:
	sub	w9, w5, #128
	cmp	w9, #3
	b.hi	LBB0_17
; %bb.7:
Lloh9:
	adrp	x10, lJTI0_0@PAGE
Lloh10:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_8
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_8:
Lloh11:
	adrp	x9, _I2C_SMBUS_WRITE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_19
; %bb.9:
	ldr	w8, [x6]
	add	x9, x21, x20
	ldr	x9, [x9, #8]
	str	w8, [x9, x19, lsl #2]
	ldr	w8, [x6]
	stp	x8, x19, [sp, #8]
	str	x1, [sp]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_23
LBB0_10:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	add	sp, sp, #80
	ret
LBB0_13:
Lloh17:
	adrp	x9, _I2C_SMBUS_WRITE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w11, [x9]
	add	x9, x21, x20
	ldr	x9, [x9, #8]
	ldr	w10, [x9, x19, lsl #2]
	cmp	w11, w8
	b.ne	LBB0_20
; %bb.14:
	and	w8, w10, #0xff00
	lsl	x10, x19, #2
	str	w8, [x9, x10]
	ldr	w11, [x6]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	ldr	w8, [x6]
	stp	x8, x19, [sp, #8]
	str	x1, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_21
LBB0_15:
Lloh21:
	adrp	x9, _I2C_SMBUS_WRITE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_22
; %bb.16:
	str	x19, [x21, x20]
	stp	x1, x19, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_17:
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_dbg
Lloh27:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_11
LBB0_18:
	str	x1, [sp]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_23
LBB0_19:
	add	x8, x21, x20
	ldr	x8, [x8, #8]
	ldr	w8, [x8, x19, lsl #2]
	str	w8, [x6]
	stp	x8, x19, [sp, #8]
	str	x1, [sp]
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_23
LBB0_20:
	and	w8, w10, #0xff
	str	w8, [x6]
	stp	x8, x19, [sp, #8]
	str	x1, [sp]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_21:
	bl	_dev_dbg
	mov	w0, #0
	add	x8, x19, #1
	str	x8, [x21, x20]
	b	LBB0_12
LBB0_22:
	add	x8, x21, x20
	ldp	x10, x9, [x8]
	add	x11, x10, #1
	str	x11, [x8]
	lsl	x8, x10, #2
	ldrb	w8, [x9, x8]
	str	w8, [x6]
	stp	x1, x8, [sp]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_23:
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
                                        ; -- End function
	.comm	_MAX_CHIPS,4,2                  ; @MAX_CHIPS
	.comm	_chip_addr,8,3                  ; @chip_addr
	.comm	_stub_chips,8,3                 ; @stub_chips
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smbus quick - addr 0x%02x\n"

	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"smbus byte - addr 0x%02x, wrote 0x%02x.\n"

l_.str.2:                               ; @.str.2
	.asciz	"smbus byte - addr 0x%02x, read  0x%02x.\n"

l_.str.3:                               ; @.str.3
	.asciz	"smbus byte data - addr 0x%02x, wrote 0x%02x at 0x%02x.\n"

l_.str.4:                               ; @.str.4
	.asciz	"smbus byte data - addr 0x%02x, read  0x%02x at 0x%02x.\n"

l_.str.5:                               ; @.str.5
	.asciz	"smbus word data - addr 0x%02x, wrote 0x%04x at 0x%02x.\n"

l_.str.6:                               ; @.str.6
	.asciz	"smbus word data - addr 0x%02x, read  0x%04x at 0x%02x.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Unsupported I2C/SMBus command\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_stub_xfer
.subsections_via_symbols
