	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_ioctl
_find_ioctl:                            ## @find_ioctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %rax
	movq	8(%rdi), %rdx
	movslq	(%rdi), %rcx
	shlq	$4, %rcx
	leaq	(%rdx,%rcx), %r8
	addq	$-16, %r8
	cmpq	%r8, %rdx
	jbe	LBB0_2
LBB0_7:
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rcx
	movq	%rcx, %rdx
	cmpq	%r8, %rdx
	ja	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r8, %rdi
	subq	%rdx, %rdi
	movq	%rdi, %rcx
	sarq	$4, %rcx
	shrq	$63, %rdi
	addq	%rcx, %rdi
	sarq	%rdi
	shlq	$4, %rdi
	leaq	(%rdx,%rdi), %rcx
	cmpl	%esi, (%rdx,%rdi)
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$-16, %rcx
	movq	%rcx, %r8
	cmpq	%r8, %rdx
	jbe	LBB0_2
	jmp	LBB0_7
LBB0_6:
	movq	8(%rdx,%rdi), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_ioctl
_find_ioctl:                            ; @find_ioctl
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldrsw	x9, [x0]
	add	x9, x8, x9, lsl #4
	sub	x9, x9, #16
	cmp	x8, x9
	b.ls	LBB0_3
LBB0_1:
	mov	x0, x2
	ret
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x10, #16
	cmp	x8, x9
	b.hi	LBB0_1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x10, x9, x8
	asr	x10, x10, #4
	cmp	x10, #0
	cinc	x10, x10, lt
	asr	x11, x10, #1
	add	x10, x8, x11, lsl #4
	ldr	w12, [x10]
	cmp	w12, w1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	b.le	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x9, x10, #16
	cmp	x8, x9
	b.ls	LBB0_3
	b	LBB0_1
LBB0_6:
	add	x8, x8, x11, lsl #4
	ldr	x2, [x8, #8]
	mov	x0, x2
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_ioctl
.subsections_via_symbols
