	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_dw_set_sda_hold            ## -- Begin function i2c_dw_set_sda_hold
	.p2align	4, 0x90
_i2c_dw_set_sda_hold:                   ## @i2c_dw_set_sda_hold
	.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, %rbx
	callq	_i2c_dw_acquire_lock
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	_DW_IC_COMP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dw_readl
	movq	_DW_IC_SDA_HOLD_MIN_VERS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.7:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	*%rax
	jmp	LBB0_11
LBB0_2:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_DW_IC_SDA_HOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dw_readl
	movl	%eax, (%rbx)
LBB0_4:
	movq	_DW_IC_SDA_HOLD_RX_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	testl	%eax, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_DW_IC_SDA_HOLD_RX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movl	%eax, (%rbx)
	movl	(%rdx), %ecx
LBB0_6:
	movl	4(%rbx), %edi
	notl	%ecx
	andl	%eax, %ecx
	movslq	%ecx, %rdx
	movq	_DW_IC_SDA_HOLD_RX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_dbg
	jmp	LBB0_11
LBB0_9:
	cmpl	$0, (%rbx)
	je	LBB0_11
## %bb.10:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movl	$0, (%rbx)
LBB0_11:
	movq	%rbx, %rdi
	callq	_i2c_dw_release_lock
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_IC_COMP_VERSION,4,2         ## @DW_IC_COMP_VERSION
	.comm	_DW_IC_SDA_HOLD_MIN_VERS,8,3    ## @DW_IC_SDA_HOLD_MIN_VERS
	.comm	_DW_IC_SDA_HOLD,4,2             ## @DW_IC_SDA_HOLD
	.comm	_DW_IC_SDA_HOLD_RX_MASK,4,2     ## @DW_IC_SDA_HOLD_RX_MASK
	.comm	_DW_IC_SDA_HOLD_RX_SHIFT,4,2    ## @DW_IC_SDA_HOLD_RX_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SDA Hold Time TX:RX = %d:%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Hardware too old to adjust SDA hold time.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_dw_set_sda_hold            ; -- Begin function i2c_dw_set_sda_hold
	.p2align	2
_i2c_dw_set_sda_hold:                   ; @i2c_dw_set_sda_hold
	.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	x19, x0
	bl	_i2c_dw_acquire_lock
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _DW_IC_COMP_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DW_IC_COMP_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dw_readl
Lloh3:
	adrp	x8, _DW_IC_SDA_HOLD_MIN_VERS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DW_IC_SDA_HOLD_MIN_VERS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.3:
	mov	x0, x19
	blr	x8
	b	LBB0_11
LBB0_4:
	ldr	w0, [x19]
	cbnz	w0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _DW_IC_SDA_HOLD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DW_IC_SDA_HOLD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dw_readl
	str	w0, [x19]
LBB0_6:
Lloh9:
	adrp	x8, _DW_IC_SDA_HOLD_RX_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DW_IC_SDA_HOLD_RX_MASK@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh11:
	adrp	x9, _DW_IC_SDA_HOLD_RX_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DW_IC_SDA_HOLD_RX_SHIFT@GOTPAGEOFF]
	tst	w10, w0
	b.ne	LBB0_8
; %bb.7:
	ldr	w10, [x9]
	mov	w11, #1
	lsl	w10, w11, w10
	orr	w0, w10, w0
	str	w0, [x19]
	ldr	w10, [x8]
LBB0_8:
	ldr	w8, [x19, #4]
	bic	w10, w0, w10
	sxtw	x2, w10
	ldr	w9, [x9]
	asr	w3, w0, w9
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_dbg
	b	LBB0_11
LBB0_9:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	w0, [x19, #4]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	str	wzr, [x19]
LBB0_11:
	mov	x0, x19
	bl	_i2c_dw_release_lock
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DW_IC_COMP_VERSION,4,2         ; @DW_IC_COMP_VERSION
	.comm	_DW_IC_SDA_HOLD_MIN_VERS,8,3    ; @DW_IC_SDA_HOLD_MIN_VERS
	.comm	_DW_IC_SDA_HOLD,4,2             ; @DW_IC_SDA_HOLD
	.comm	_DW_IC_SDA_HOLD_RX_MASK,4,2     ; @DW_IC_SDA_HOLD_RX_MASK
	.comm	_DW_IC_SDA_HOLD_RX_SHIFT,4,2    ; @DW_IC_SDA_HOLD_RX_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SDA Hold Time TX:RX = %d:%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Hardware too old to adjust SDA hold time.\n"

.subsections_via_symbols
