	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cctl_do_io
_cctl_do_io:                            ## @cctl_do_io
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, %ebx
	movl	%edi, %r15d
	movq	_CTL_IO@GOTPCREL(%rip), %r13
	movq	_CTL_SUCCESS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	%r15d, %edi
	movq	%r12, %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CTL_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	(%r12), %ecx
	xorl	%eax, %eax
	cmpl	(%r14), %ecx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-1(%rbx), %ecx
	testl	%ebx, %ebx
	movl	%ecx, %ebx
	jg	LBB0_1
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_warn
	movl	$-1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_IO,4,2                     ## @CTL_IO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: error sending CTL_IO ioctl"

	.comm	_CTL_STATUS_MASK,4,2            ## @CTL_STATUS_MASK
	.comm	_CTL_SUCCESS,4,2                ## @CTL_SUCCESS
	.no_dead_strip	_cctl_do_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cctl_do_io
_cctl_do_io:                            ; @cctl_do_io
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _CTL_IO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CTL_IO@GOTPAGEOFF]
Lloh2:
	adrp	x24, _CTL_STATUS_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CTL_STATUS_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x25, _CTL_SUCCESS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CTL_SUCCESS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x22
	mov	x2, x20
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24]
	and	w8, w9, w8
	ldr	w9, [x25]
	cmp	w8, w9
	ccmp	w21, #0, #4, ne
	sub	w21, w21, #1
	b.gt	LBB0_1
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warn
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_IO,4,2                     ; @CTL_IO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: error sending CTL_IO ioctl"

	.comm	_CTL_STATUS_MASK,4,2            ; @CTL_STATUS_MASK
	.comm	_CTL_SUCCESS,4,2                ; @CTL_SUCCESS
	.no_dead_strip	_cctl_do_io
.subsections_via_symbols
