	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_set_nice_ioctl
_ide_set_nice_ioctl:                    ## @ide_set_nice_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	_IDE_NICE_DSC_OVERLAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IDE_NICE_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%eax, %edx
	movslq	%edx, %rdx
	notq	%rdx
	testq	%rdx, %rsi
	jne	LBB0_1
## %bb.2:
	btq	%rax, %rsi
	jae	LBB0_5
## %bb.3:
	movq	(%rdi), %rax
	movq	_ide_tape@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_1
## %bb.4:
	movq	_IDE_DFLAG_DSC_OVERLAP@GOTPCREL(%rip), %rdx
	movl	8(%rdi), %eax
	orl	(%rdx), %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_IDE_DFLAG_DSC_OVERLAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%rdi), %eax
LBB0_6:
	btq	%rcx, %rsi
	movq	_IDE_DFLAG_NICE1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jae	LBB0_8
## %bb.7:
	orl	%ecx, %eax
	jmp	LBB0_9
LBB0_8:
	notl	%ecx
	andl	%ecx, %eax
LBB0_9:
	movl	%eax, 8(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_NICE_DSC_OVERLAP,4,2       ## @IDE_NICE_DSC_OVERLAP
	.comm	_IDE_NICE_1,4,2                 ## @IDE_NICE_1
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_ide_tape,8,3                   ## @ide_tape
	.comm	_IDE_DFLAG_DSC_OVERLAP,4,2      ## @IDE_DFLAG_DSC_OVERLAP
	.comm	_IDE_DFLAG_NICE1,4,2            ## @IDE_DFLAG_NICE1
	.no_dead_strip	_ide_set_nice_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_set_nice_ioctl
_ide_set_nice_ioctl:                    ; @ide_set_nice_ioctl
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IDE_NICE_DSC_OVERLAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDE_NICE_DSC_OVERLAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	mov	w10, #1
Lloh3:
	adrp	x8, _IDE_NICE_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDE_NICE_1@GOTPAGEOFF]
	lsl	w11, w10, w9
Lloh5:
	ldr	w8, [x8]
	lsl	w10, w10, w8
	orr	w10, w10, w11
	sxtw	x10, w10
	bics	xzr, x1, x10
	b.ne	LBB0_4
; %bb.1:
	lsr	x9, x1, x9
	tbz	w9, #0, LBB0_5
; %bb.2:
	ldr	x9, [x0]
Lloh6:
	adrp	x10, _ide_tape@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ide_tape@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x9, _IDE_DFLAG_DSC_OVERLAP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IDE_DFLAG_DSC_OVERLAP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [x0, #8]
	orr	w9, w10, w9
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, _EPERM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
Lloh15:
	adrp	x9, _IDE_DFLAG_DSC_OVERLAP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IDE_DFLAG_DSC_OVERLAP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [x0, #8]
	bic	w9, w10, w9
LBB0_6:
Lloh18:
	adrp	x10, _IDE_DFLAG_NICE1@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IDE_DFLAG_NICE1@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsr	x8, x1, x8
	tbz	w8, #0, LBB0_8
; %bb.7:
	mov	w8, #0
	orr	w9, w9, w10
	b	LBB0_9
LBB0_8:
	mov	w8, #0
	bic	w9, w9, w10
LBB0_9:
	str	w9, [x0, #8]
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_NICE_DSC_OVERLAP,4,2       ; @IDE_NICE_DSC_OVERLAP
	.comm	_IDE_NICE_1,4,2                 ; @IDE_NICE_1
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_ide_tape,8,3                   ; @ide_tape
	.comm	_IDE_DFLAG_DSC_OVERLAP,4,2      ; @IDE_DFLAG_DSC_OVERLAP
	.comm	_IDE_DFLAG_NICE1,4,2            ; @IDE_DFLAG_NICE1
	.no_dead_strip	_ide_set_nice_ioctl
.subsections_via_symbols
