	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_pnx_timeout
_i2c_pnx_timeout:                       ## @i2c_pnx_timeout
	.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, %rbx
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_I2C_REG_STS
	movl	%eax, %edi
	callq	_ioread32
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_I2C_REG_CTL
	movl	%eax, %edi
	callq	_ioread32
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_err
	movq	%r14, %rdi
	callq	_I2C_REG_CTL
	movl	%eax, %edi
	callq	_ioread32
	movq	_mcntrl_afie@GOTPCREL(%rip), %rcx
	movq	_mcntrl_naie@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_mcntrl_rffie@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_mcntrl_drmie@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r14, %rdi
	callq	_I2C_REG_CTL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_iowrite32
	movq	_mcntrl_reset@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_I2C_REG_CTL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_iowrite32
	movq	_I2C_PNX_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_wait_reset
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 4(%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Master timed out. stat = %04x, cntrl = %04x. Resetting master...\n"

	.comm	_mcntrl_afie,4,2                ## @mcntrl_afie
	.comm	_mcntrl_naie,4,2                ## @mcntrl_naie
	.comm	_mcntrl_rffie,4,2               ## @mcntrl_rffie
	.comm	_mcntrl_drmie,4,2               ## @mcntrl_drmie
	.comm	_mcntrl_reset,4,2               ## @mcntrl_reset
	.comm	_I2C_PNX_TIMEOUT,4,2            ## @I2C_PNX_TIMEOUT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_i2c_pnx_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_pnx_timeout
_i2c_pnx_timeout:                       ; @i2c_pnx_timeout
	.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	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_I2C_REG_STS
	bl	_ioread32
	mov	x21, x0
	mov	x0, x19
	bl	_I2C_REG_CTL
	bl	_ioread32
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	mov	x0, x19
	bl	_I2C_REG_CTL
	bl	_ioread32
Lloh2:
	adrp	x8, _mcntrl_afie@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mcntrl_afie@GOTPAGEOFF]
Lloh4:
	adrp	x9, _mcntrl_naie@GOTPAGE
Lloh5:
	ldr	x9, [x9, _mcntrl_naie@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _mcntrl_rffie@GOTPAGE
Lloh9:
	ldr	x9, [x9, _mcntrl_rffie@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _mcntrl_drmie@GOTPAGE
Lloh12:
	ldr	x9, [x9, _mcntrl_drmie@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w20, w0, w8
	mov	x0, x19
	bl	_I2C_REG_CTL
	mov	x1, x0
	mov	x0, x20
	bl	_iowrite32
Lloh14:
	adrp	x8, _mcntrl_reset@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mcntrl_reset@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w20, w8, w20
	mov	x0, x19
	bl	_I2C_REG_CTL
	mov	x1, x0
	mov	x0, x20
	bl	_iowrite32
Lloh17:
	adrp	x8, _I2C_PNX_TIMEOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I2C_PNX_TIMEOUT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_wait_reset
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #4]
	mov	x0, x19
	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
	b	_complete
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Master timed out. stat = %04x, cntrl = %04x. Resetting master...\n"

	.comm	_mcntrl_afie,4,2                ; @mcntrl_afie
	.comm	_mcntrl_naie,4,2                ; @mcntrl_naie
	.comm	_mcntrl_rffie,4,2               ; @mcntrl_rffie
	.comm	_mcntrl_drmie,4,2               ; @mcntrl_drmie
	.comm	_mcntrl_reset,4,2               ; @mcntrl_reset
	.comm	_I2C_PNX_TIMEOUT,4,2            ; @I2C_PNX_TIMEOUT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_i2c_pnx_timeout
.subsections_via_symbols
