	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loop_change_fd
_loop_change_fd:                        ## @loop_change_fd
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	movq	(%rdi), %rax
	movq	_Lo_bound@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %r13
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movq	_LO_FLAGS_READ_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_3
## %bb.4:
	movq	%rsi, %r14
	movq	_EBADF@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	%edx, %edi
	callq	_fget
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	16(%r13), %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	(%rbx), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	callq	_S_ISBLK
	testl	%eax, %eax
	je	LBB0_12
LBB0_7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_get_loop_size
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_get_loop_size
	cmpq	%rax, %rbx
	jne	LBB0_12
## %bb.8:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_loop_switch
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_9
LBB0_12:
	movq	%r12, %rdi
	callq	_fput
	movl	%r15d, %ebx
	jmp	LBB0_13
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	subl	(%rcx), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_fput
	movq	_max_part@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_10
## %bb.11:
	movq	_BLKRRPART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_ioctl_by_bdev
	jmp	LBB0_13
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_Lo_bound,8,3                   ## @Lo_bound
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LO_FLAGS_READ_ONLY,4,2         ## @LO_FLAGS_READ_ONLY
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_max_part,8,3                   ## @max_part
	.comm	_BLKRRPART,4,2                  ## @BLKRRPART
	.no_dead_strip	_loop_change_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loop_change_fd
_loop_change_fd:                        ; @loop_change_fd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _Lo_bound@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Lo_bound@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x20, _EINVAL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x0, #8]
Lloh5:
	adrp	x9, _LO_FLAGS_READ_ONLY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LO_FLAGS_READ_ONLY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.2:
	mov	x19, x1
Lloh8:
	adrp	x8, _EBADF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	mov	x0, x2
	bl	_fget
	cbz	x0, LBB0_10
; %bb.3:
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x24, [x8]
	ldr	x23, [x21, #16]
	ldr	w8, [x20]
	neg	w20, w8
	ldr	w0, [x24]
	bl	_S_ISREG
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x24]
	bl	_S_ISBLK
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x21
	mov	x1, x22
	bl	_get_loop_size
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	bl	_get_loop_size
	cmp	x24, x0
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x22
	bl	_loop_switch
	mov	x20, x0
	cbz	w0, LBB0_11
LBB0_7:
	mov	x0, x22
	bl	_fput
	b	LBB0_14
LBB0_8:
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_9:
	ldr	w8, [x20]
	neg	w20, w8
	b	LBB0_14
LBB0_10:
	neg	w20, w23
	b	LBB0_14
LBB0_11:
	mov	x0, x23
	bl	_fput
Lloh14:
	adrp	x8, _max_part@GOTPAGE
Lloh15:
	ldr	x8, [x8, _max_part@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.12:
Lloh17:
	adrp	x8, _BLKRRPART@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BLKRRPART@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ioctl_by_bdev
LBB0_13:
	mov	w20, #0
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_Lo_bound,8,3                   ; @Lo_bound
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LO_FLAGS_READ_ONLY,4,2         ; @LO_FLAGS_READ_ONLY
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_max_part,8,3                   ; @max_part
	.comm	_BLKRRPART,4,2                  ; @BLKRRPART
	.no_dead_strip	_loop_change_fd
.subsections_via_symbols
