	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_powermac_smbus_xfer
_i2c_powermac_smbus_xfer:               ## @i2c_powermac_smbus_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_i2c_get_adapdata
	movq	%rax, %r13
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	movb	(%rax), %bl
	xorl	%r14d, %r14d
	cmpb	%r12b, %bl
	sete	%r15b
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_pmac_i2c_open
	testl	%eax, %eax
	jne	LBB0_34
## %bb.1:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movb	%bl, -57(%rbp)                  ## 1-byte Spill
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	$-128, %ecx
	cmpl	$5, %ecx
	ja	LBB0_5
## %bb.2:
	movq	16(%rbp), %rsi
	movb	%r15b, %r14b
	leal	(%r14,%rax,2), %r15d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	%r12d, %eax
	cmpb	%al, -57(%rbp)                  ## 1-byte Folded Reload
	movq	%r13, %r14
	movl	%r15d, %r13d
	jne	LBB0_16
## %bb.4:
	movq	_pmac_i2c_mode_combined@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movq	%r13, %r14
	jmp	LBB0_33
LBB0_6:
	movq	_pmac_i2c_mode_std@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %r14
	movq	%r13, %rdi
	callq	_pmac_i2c_setmode
	testl	%eax, %eax
	jne	LBB0_33
## %bb.7:
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	jmp	LBB0_32
LBB0_8:
	cmpb	%r12b, -57(%rbp)                ## 1-byte Folded Reload
	movq	%r13, %r14
	movl	%r15d, %r12d
	movq	%rsi, %r13
	jne	LBB0_21
## %bb.9:
	movq	_pmac_i2c_mode_combined@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_10:
	cmpb	%r12b, -57(%rbp)                ## 1-byte Folded Reload
	movq	%r13, %r14
	movl	%r15d, %r12d
	movq	%rsi, %r13
	jne	LBB0_24
## %bb.11:
	movq	_pmac_i2c_mode_combined@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_12:
	movl	%r15d, %r12d
	movq	%rsi, %r15
	movq	_pmac_i2c_mode_std@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %r14
	movq	%r13, %rdi
	callq	_pmac_i2c_setmode
	testl	%eax, %eax
	jne	LBB0_33
## %bb.13:
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	jmp	LBB0_27
LBB0_14:
	cmpb	%r12b, -57(%rbp)                ## 1-byte Folded Reload
	movq	%r13, %r14
	movl	%r15d, %r12d
	movq	%rsi, %r13
	jne	LBB0_28
## %bb.15:
	movq	_pmac_i2c_mode_combined@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_16:
	movq	_pmac_i2c_mode_stdsub@GOTPCREL(%rip), %rax
LBB0_17:
	movl	%edx, %r15d
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pmac_i2c_setmode
	testl	%eax, %eax
	jne	LBB0_33
## %bb.18:
	cmpb	%r12b, -57(%rbp)                ## 1-byte Folded Reload
	jne	LBB0_36
## %bb.19:
	leaq	-56(%rbp), %r8
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	movl	$2, %r9d
	callq	_pmac_i2c_xfer
	testl	%eax, %eax
	jne	LBB0_33
## %bb.20:
	movl	-52(%rbp), %eax
	shll	$8, %eax
	orl	-56(%rbp), %eax
	movq	16(%rbp), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_21:
	movq	_pmac_i2c_mode_stdsub@GOTPCREL(%rip), %rax
LBB0_22:
	movl	%edx, %r15d
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pmac_i2c_setmode
	testl	%eax, %eax
	jne	LBB0_33
## %bb.23:
	movq	(%r13), %r8
	movl	(%r8), %r9d
	addq	$4, %r8
	jmp	LBB0_31
LBB0_24:
	movq	_pmac_i2c_mode_stdsub@GOTPCREL(%rip), %rax
LBB0_25:
	movl	%edx, %r15d
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pmac_i2c_setmode
	testl	%eax, %eax
	jne	LBB0_33
## %bb.26:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	movq	%r13, %r8
LBB0_27:
	movl	$1, %r9d
	jmp	LBB0_32
LBB0_28:
	movq	_pmac_i2c_mode_stdsub@GOTPCREL(%rip), %rax
LBB0_29:
	movl	%edx, %r15d
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pmac_i2c_setmode
	testl	%eax, %eax
	jne	LBB0_33
## %bb.30:
	movq	(%r13), %r8
	movl	(%r8), %r9d
	incl	%r9d
LBB0_31:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
LBB0_32:
	callq	_pmac_i2c_xfer
LBB0_33:
	movq	%r14, %rdi
	movl	%eax, %ebx
	callq	_pmac_i2c_close
	movl	%ebx, %eax
LBB0_34:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_37
## %bb.35:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movq	16(%rbp), %rax
	movl	(%rax), %eax
	movzbl	%al, %ecx
	movl	%ecx, -56(%rbp)
	movzbl	%ah, %eax
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %r8
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	movl	$2, %r9d
	jmp	LBB0_32
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_I2C_SMBUS_READ,1,0             ## @I2C_SMBUS_READ
	.comm	_pmac_i2c_mode_std,4,2          ## @pmac_i2c_mode_std
	.comm	_pmac_i2c_mode_combined,4,2     ## @pmac_i2c_mode_combined
	.comm	_pmac_i2c_mode_stdsub,4,2       ## @pmac_i2c_mode_stdsub
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_i2c_powermac_smbus_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_powermac_smbus_xfer
_i2c_powermac_smbus_xfer:               ; @i2c_powermac_smbus_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x6
	mov	x26, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_i2c_get_adapdata
	mov	x19, x0
Lloh3:
	adrp	x8, _I2C_SMBUS_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_SMBUS_READ@GOTPAGEOFF]
	ldrb	w27, [x8]
	cmp	w27, w24, uxtb
	cset	w20, eq
	mov	w1, #0
	bl	_pmac_i2c_open
	mov	x23, x0
	cbnz	w0, LBB0_22
; %bb.1:
	sub	w8, w26, #128
	cmp	w8, #5
	b.hi	LBB0_7
; %bb.2:
	bfi	w20, w25, #1, #31
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh7:
	adrp	x8, _pmac_i2c_mode_combined@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pmac_i2c_mode_combined@GOTPAGEOFF]
Lloh9:
	adrp	x9, _pmac_i2c_mode_stdsub@GOTPAGE
Lloh10:
	ldr	x9, [x9, _pmac_i2c_mode_stdsub@GOTPAGEOFF]
	cmp	w27, w24, uxtb
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pmac_i2c_setmode
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.4:
	cmp	w27, w24, uxtb
	b.ne	LBB0_24
; %bb.5:
	mov	x4, sp
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	x3, x22
	mov	w5, #2
	bl	_pmac_i2c_xfer
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.6:
	ldp	w9, w8, [sp]
	orr	w8, w9, w8, lsl #8
	str	w8, [x21]
	b	LBB0_21
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_21
LBB0_8:
Lloh14:
	adrp	x8, _pmac_i2c_mode_std@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pmac_i2c_mode_std@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pmac_i2c_setmode
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	b	LBB0_20
LBB0_10:
Lloh17:
	adrp	x8, _pmac_i2c_mode_combined@GOTPAGE
Lloh18:
	ldr	x8, [x8, _pmac_i2c_mode_combined@GOTPAGEOFF]
Lloh19:
	adrp	x9, _pmac_i2c_mode_stdsub@GOTPAGE
Lloh20:
	ldr	x9, [x9, _pmac_i2c_mode_stdsub@GOTPAGEOFF]
	cmp	w27, w24, uxtb
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pmac_i2c_setmode
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.11:
	ldr	x4, [x21]
	ldr	w5, [x4], #4
	b	LBB0_19
LBB0_12:
Lloh21:
	adrp	x8, _pmac_i2c_mode_combined@GOTPAGE
Lloh22:
	ldr	x8, [x8, _pmac_i2c_mode_combined@GOTPAGEOFF]
Lloh23:
	adrp	x9, _pmac_i2c_mode_stdsub@GOTPAGE
Lloh24:
	ldr	x9, [x9, _pmac_i2c_mode_stdsub@GOTPAGEOFF]
	cmp	w27, w24, uxtb
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pmac_i2c_setmode
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	x3, x22
	b	LBB0_16
LBB0_14:
Lloh25:
	adrp	x8, _pmac_i2c_mode_std@GOTPAGE
Lloh26:
	ldr	x8, [x8, _pmac_i2c_mode_std@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pmac_i2c_setmode
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
LBB0_16:
	mov	x4, x21
	mov	w5, #1
	b	LBB0_20
LBB0_17:
Lloh28:
	adrp	x8, _pmac_i2c_mode_combined@GOTPAGE
Lloh29:
	ldr	x8, [x8, _pmac_i2c_mode_combined@GOTPAGEOFF]
Lloh30:
	adrp	x9, _pmac_i2c_mode_stdsub@GOTPAGE
Lloh31:
	ldr	x9, [x9, _pmac_i2c_mode_stdsub@GOTPAGEOFF]
	cmp	w27, w24, uxtb
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pmac_i2c_setmode
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.18:
	ldr	x4, [x21]
	ldr	w8, [x4]
	add	w5, w8, #1
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	x3, x22
LBB0_20:
	bl	_pmac_i2c_xfer
	mov	x23, x0
LBB0_21:
	mov	x0, x19
	bl	_pmac_i2c_close
LBB0_22:
	ldr	x8, [sp, #8]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.23:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_24:
	ldr	w8, [x21]
	and	w9, w8, #0xff
	ubfx	w8, w8, #8, #8
	stp	w9, w8, [sp]
	mov	x4, sp
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	x3, x22
	mov	w5, #2
	b	LBB0_20
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
                                        ; -- End function
	.comm	_I2C_SMBUS_READ,1,0             ; @I2C_SMBUS_READ
	.comm	_pmac_i2c_mode_std,4,2          ; @pmac_i2c_mode_std
	.comm	_pmac_i2c_mode_combined,4,2     ; @pmac_i2c_mode_combined
	.comm	_pmac_i2c_mode_stdsub,4,2       ; @pmac_i2c_mode_stdsub
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_i2c_powermac_smbus_xfer
.subsections_via_symbols
