	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_i2c_xfer
_pch_i2c_xfer:                          ## @pch_i2c_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
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %r14
	movq	_pch_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_pch_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_13
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_pch_dbg
	movl	$1, (%r14)
	testq	%rbx, %rbx
	jle	LBB0_4
## %bb.5:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movq	%r15, %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,8), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r15,8), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	orq	8(%rdi), %rbx
	movq	%rbx, (%rax,%r15,8)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_pch_dbg
	incq	%r15
	xorl	%edx, %edx
	cmpq	%r12, %r15
	sete	%dl
	xorl	%ecx, %ecx
	testq	%r14, %r14
	sete	%cl
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_pch_i2c_readbytes
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_pch_i2c_writebytes
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %r15
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	testq	%r14, %r14
	jns	LBB0_6
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	_pch_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	testq	%r14, %r14
	cmovsq	%r14, %rbx
	jmp	LBB0_12
LBB0_4:
	movl	$0, (%r14)
	movq	_pch_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_12:
	movq	%rbx, %rax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pch_mutex,4,2                  ## @pch_mutex
	.comm	_EBUSY,8,3                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adap->p_adapter_info->pch_i2c_suspended is %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"After invoking I2C_MODE_SEL :flag= 0x%x\n"

	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
	.no_dead_strip	_pch_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_i2c_xfer
_pch_i2c_xfer:                          ; @pch_i2c_xfer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x0, _pch_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pch_mutex@GOTPAGEOFF]
	bl	_mutex_lock_interruptible
	cbnz	x0, LBB0_12
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, _pch_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _pch_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_12
LBB0_3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	bl	_pch_dbg
	mov	w8, #1
	str	w8, [x20]
	cmp	x19, #0
	b.le	LBB0_11
; %bb.4:
	mov	w25, #1
Lloh9:
	adrp	x23, l_.str.1@PAGE
Lloh10:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh11:
	adrp	x26, _I2C_M_RD@GOTPAGE
Lloh12:
	ldr	x26, [x26, _I2C_M_RD@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	orr	x24, x9, x8
	str	x24, [x21]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_pch_dbg
	ldr	x8, [x26]
	cmp	x19, x25
	cset	w2, eq
	cmp	x25, #1
	cset	w3, eq
	mov	x0, x22
	mov	x1, x21
	and	x8, x8, x24
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_pch_i2c_readbytes
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_pch_i2c_writebytes
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	cmp	x25, x19
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	add	x21, x21, #8
	tbz	x24, #63, LBB0_5
LBB0_10:
	str	wzr, [x20]
Lloh13:
	adrp	x0, _pch_mutex@GOTPAGE
Lloh14:
	ldr	x0, [x0, _pch_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	cmp	x24, #0
	csel	x0, x24, x19, lt
	b	LBB0_12
LBB0_11:
	str	wzr, [x20]
Lloh15:
	adrp	x0, _pch_mutex@GOTPAGE
Lloh16:
	ldr	x0, [x0, _pch_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_pch_mutex,4,2                  ; @pch_mutex
	.comm	_EBUSY,8,3                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adap->p_adapter_info->pch_i2c_suspended is %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"After invoking I2C_MODE_SEL :flag= 0x%x\n"

	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
	.no_dead_strip	_pch_i2c_xfer
.subsections_via_symbols
