	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_dw_reg_slave
_i2c_dw_reg_slave:                      ## @i2c_dw_reg_slave
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_i2c_get_adapdata
	cmpq	$0, 56(%rax)
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%rax, %rbx
	movq	_I2C_CLIENT_TEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.4:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	64(%rbx), %edi
	callq	_pm_runtime_get_sync
	movq	%rbx, %rdi
	callq	___i2c_dw_disable_nowait
	movl	4(%r14), %esi
	movq	_DW_IC_SAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_dw_writel
	movq	%r14, 56(%rbx)
	movq	%rbx, %rdi
	callq	___i2c_dw_enable
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movq	_STATUS_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movups	%xmm0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_I2C_CLIENT_TEN,4,2             ## @I2C_CLIENT_TEN
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_DW_IC_SAR,4,2                  ## @DW_IC_SAR
	.comm	_STATUS_IDLE,4,2                ## @STATUS_IDLE
	.no_dead_strip	_i2c_dw_reg_slave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_dw_reg_slave
_i2c_dw_reg_slave:                      ; @i2c_dw_reg_slave
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_i2c_get_adapdata
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _I2C_CLIENT_TEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I2C_CLIENT_TEN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x19, x0
	ldr	w0, [x0, #64]
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	___i2c_dw_disable_nowait
	ldr	w1, [x20, #4]
Lloh7:
	adrp	x8, _DW_IC_SAR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DW_IC_SAR@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dw_writel
	str	x20, [x19, #56]
	mov	x0, x19
	bl	___i2c_dw_enable
	mov	w0, #0
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #24]
	stur	q0, [x19, #40]
Lloh10:
	adrp	x8, _STATUS_IDLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STATUS_IDLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	stp	xzr, xzr, [x19]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_I2C_CLIENT_TEN,4,2             ; @I2C_CLIENT_TEN
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_DW_IC_SAR,4,2                  ; @DW_IC_SAR
	.comm	_STATUS_IDLE,4,2                ; @STATUS_IDLE
	.no_dead_strip	_i2c_dw_reg_slave
.subsections_via_symbols
