	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_pinconf_delay_to_bit
_st_pinconf_delay_to_bit:               ## @st_pinconf_delay_to_bit
	.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	%rsi, %rbx
	movl	%edi, %r14d
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rdx, %rdi
	callq	_ST_PINCONF_UNPACK_OE
	xorl	%edx, %edx
	testq	%rax, %rax
	sete	%dl
	shlq	$4, %rdx
	movl	8(%rbx,%rdx), %ecx
	movq	(%rbx,%rdx), %rax
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movl	$-1, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx,4), %esi
	cmpl	%r14d, %esi
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	subl	%esi, %edi
	movl	%edi, %esi
	negl	%esi
	cmovsl	%edi, %esi
	cmpl	%r15d, %esi
	cmovbl	%esi, %r15d
	cmovbl	%ebx, %edx
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_3
## %bb.5:
	movslq	%edx, %rbx
	jmp	LBB0_6
LBB0_1:
	movq	$-1, %rbx
LBB0_6:
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_warn
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to set delay %d, closest available %d\n"

	.no_dead_strip	_st_pinconf_delay_to_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_pinconf_delay_to_bit
_st_pinconf_delay_to_bit:               ; @st_pinconf_delay_to_bit
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x2
	bl	_ST_PINCONF_UNPACK_OE
	mov	w8, #8
	mov	w9, #24
	cmp	x0, #0
	csel	x8, x9, x8, eq
	cset	w9, eq
	lsl	x10, x9, #4
	ldr	w9, [x20, x8]
	ldr	x8, [x20, x10]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
	mov	w10, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, x20, lsl #2]
	cmp	w11, w19
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w11, w19, w11
	cneg	w11, w11, mi
	cmp	w11, w21
	csel	w21, w11, w21, lo
	csel	w10, w20, w10, lo
	add	x20, x20, #1
	cmp	x9, x20
	b.ne	LBB0_2
; %bb.4:
	sxtw	x20, w10
	b	LBB0_6
LBB0_5:
	mov	x20, #-1
LBB0_6:
	ldr	w2, [x8, x20, lsl #2]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_warn
LBB0_7:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to set delay %d, closest available %d\n"

	.no_dead_strip	_st_pinconf_delay_to_bit
.subsections_via_symbols
