	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_ioctl_gem_info
_msm_ioctl_gem_info:                    ## @msm_ioctl_gem_info
	.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
	cmpq	$0, 16(%rsi)
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rsi, %r15
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.4:
	movq	%rdi, %r13
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	cmpl	$0, 4(%r15)
	jne	LBB0_1
LBB0_6:
	movl	12(%r15), %esi
	movq	%rdx, %rdi
	callq	_drm_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_msm_bo
	movq	%rax, %r12
	movl	(%r15), %eax
	xorl	%ebx, %ebx
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_27
## %bb.9:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	cmpl	$8, 4(%r15)
	jae	LBB0_13
## %bb.14:
	movq	(%r12), %r13
	movl	8(%r15), %edi
	callq	_u64_to_user_ptr
	movl	4(%r15), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_copy_from_user
	movq	(%r12), %rcx
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movb	$0, (%rcx)
	jmp	LBB0_25
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	%r14, %rdi
	callq	_msm_gem_mmap_offset
	movl	%eax, 8(%r15)
	jmp	LBB0_27
LBB0_21:
	cmpl	$0, 8(%r15)
	je	LBB0_23
## %bb.22:
	movl	4(%r15), %r13d
	movq	(%r12), %rdi
	callq	_strlen
	cmpl	%eax, %r13d
	jge	LBB0_23
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_11:
	addq	$8, %r15
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_msm_ioctl_gem_info_iova
	movl	%eax, %ebx
	jmp	LBB0_27
LBB0_23:
	movq	(%r12), %rdi
	callq	_strlen
	movl	%eax, 4(%r15)
	movl	8(%r15), %edi
	testl	%edi, %edi
	je	LBB0_27
## %bb.24:
	callq	_u64_to_user_ptr
	movq	(%r12), %rsi
	movl	4(%r15), %edx
	movl	%eax, %edi
	callq	_copy_to_user
	testl	%eax, %eax
	je	LBB0_27
LBB0_25:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_26:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_27:
	movq	%r14, %rdi
	callq	_drm_gem_object_put_unlocked
	jmp	LBB0_28
LBB0_16:
	movslq	4(%r15), %rax
	movb	$0, (%rcx,%rax)
	cmpl	$0, 4(%r15)
	jle	LBB0_27
## %bb.17:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movsbl	(%rax,%r13), %edi
	callq	_isprint
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%r13
	movslq	4(%r15), %rax
	cmpq	%rax, %r13
	jl	LBB0_18
	jmp	LBB0_27
LBB0_19:
	movq	(%r12), %rax
	movb	$0, (%rax,%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_27
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_5
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_21, LBB0_21-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
LJTI0_1:
	.long	L0_1_set_12
	.long	L0_1_set_10
	.long	L0_1_set_21
	.long	L0_1_set_11
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_msm_ioctl_gem_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_ioctl_gem_info
_msm_ioctl_gem_info:                    ; @msm_ioctl_gem_info
	.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, [x1, #16]
	cbz	x8, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	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
LBB0_4:
	mov	x20, x1
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_1
; %bb.5:
	mov	x22, x0
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_1
LBB0_7:
	ldr	w1, [x20, #12]
	mov	x0, x2
	bl	_drm_gem_object_lookup
	cbz	x0, LBB0_13
; %bb.8:
	mov	x19, x0
	bl	_to_msm_bo
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_27
; %bb.9:
	mov	x21, x0
Lloh4:
	adrp	x9, lJTI0_1@PAGE
Lloh5:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	ldr	w8, [x20, #4]
	cmp	w8, #8
	b.hs	LBB0_17
; %bb.11:
	ldr	x22, [x21]
	ldr	w0, [x20, #8]
	bl	_u64_to_user_ptr
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x22
	bl	_copy_from_user
	ldr	x8, [x21]
	cbz	w0, LBB0_23
; %bb.12:
	strb	wzr, [x8]
	b	LBB0_21
LBB0_13:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_2
LBB0_14:
	mov	x0, x19
	bl	_msm_gem_mmap_offset
	mov	w22, #0
	str	w0, [x20, #8]
	b	LBB0_28
LBB0_15:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_19
; %bb.16:
	ldr	w22, [x20, #4]
	ldr	x0, [x21]
	bl	_strlen
	cmp	w22, w0
	b.ge	LBB0_19
LBB0_17:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_18:
	add	x2, x20, #8
	mov	x0, x22
	mov	x1, x19
	bl	_msm_ioctl_gem_info_iova
	mov	x22, x0
	b	LBB0_28
LBB0_19:
	ldr	x0, [x21]
	bl	_strlen
	str	w0, [x20, #4]
	ldr	w0, [x20, #8]
	cbz	w0, LBB0_27
; %bb.20:
	bl	_u64_to_user_ptr
	ldr	x1, [x21]
	ldr	w2, [x20, #4]
	bl	_copy_to_user
	cbz	w0, LBB0_27
LBB0_21:
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_28
LBB0_23:
	ldrsw	x9, [x20, #4]
	strb	wzr, [x8, x9]
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.24:
	mov	x23, #0
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldrsb	w0, [x8, x23]
	bl	_isprint
	mov	w22, #0
	cbz	w0, LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20, #4]
	cmp	x23, x8
	b.lt	LBB0_25
	b	LBB0_28
LBB0_27:
	mov	w22, #0
LBB0_28:
	mov	x0, x19
	bl	_drm_gem_object_put_unlocked
	b	LBB0_3
LBB0_29:
	ldr	x8, [x21]
	strb	wzr, [x8, x23]
	b	LBB0_28
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
lJTI0_1:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_15-LBB0_10)>>2
	.byte	(LBB0_18-LBB0_10)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_msm_ioctl_gem_info
.subsections_via_symbols
