	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_file_ioctl
_selinux_file_ioctl:                    ## @selinux_file_ioctl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_current_cred
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	__IOC_DIR
	movl	%eax, %ebx
	movq	__IOC_WRITE@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	je	LBB0_2
## %bb.1:
	movq	_FILE__WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movl	%r12d, %edi
	callq	__IOC_DIR
	movq	__IOC_READ@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_FILE__READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%ebx, %eax
	jne	LBB0_6
## %bb.5:
	movq	_FILE__IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_file_has_perm                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__IOC_WRITE,4,2                 ## @_IOC_WRITE
	.comm	_FILE__WRITE,4,2                ## @FILE__WRITE
	.comm	__IOC_READ,4,2                  ## @_IOC_READ
	.comm	_FILE__READ,4,2                 ## @FILE__READ
	.comm	_FILE__IOCTL,4,2                ## @FILE__IOCTL
	.no_dead_strip	_selinux_file_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_file_ioctl
_selinux_file_ioctl:                    ; @selinux_file_ioctl
	.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	x19, x1
	mov	x20, x0
	bl	_current_cred
	mov	x21, x0
	mov	x0, x19
	bl	__IOC_DIR
Lloh0:
	adrp	x8, __IOC_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, __IOC_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FILE__WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FILE__WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w22, wzr, w9, eq
	mov	x0, x19
	bl	__IOC_DIR
Lloh6:
	adrp	x8, __IOC_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, __IOC_READ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _FILE__READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FILE__READ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w8, w8, w22
Lloh12:
	adrp	x9, _FILE__IOCTL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FILE__IOCTL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w2, w9, w8, eq
	mov	x0, x21
	mov	x1, 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
	b	_file_has_perm
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__IOC_WRITE,4,2                 ; @_IOC_WRITE
	.comm	_FILE__WRITE,4,2                ; @FILE__WRITE
	.comm	__IOC_READ,4,2                  ; @_IOC_READ
	.comm	_FILE__READ,4,2                 ; @FILE__READ
	.comm	_FILE__IOCTL,4,2                ; @FILE__IOCTL
	.no_dead_strip	_selinux_file_ioctl
.subsections_via_symbols
