	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_atif_verify_interface
_amdgpu_atif_verify_interface:          ## @amdgpu_atif_verify_interface
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_ATIF_FUNCTION_VERIFY_INTERFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_amdgpu_atif_call
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	-40(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	(%r14), %rax
	movq	(%rax), %rsi
	cmpq	$11, %rsi
	ja	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movl	$12, %edi
	callq	_min
	movq	(%r14), %rsi
	leaq	-40(%rbp), %rdi
	movq	%rax, %rdx
	callq	_memcpy
	movl	-32(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	leaq	4(%r15), %rdi
	movl	-36(%rbp), %esi
	callq	_amdgpu_atif_parse_notification
	movl	-40(%rbp), %esi
	movq	%r15, %rdi
	callq	_amdgpu_atif_parse_functions
LBB0_5:
	movq	%r14, %rdi
	callq	_kfree
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATIF_FUNCTION_VERIFY_INTERFACE,4,2 ## @ATIF_FUNCTION_VERIFY_INTERFACE
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ATIF buffer is too small: %zu\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"ATIF version %u\n"

	.no_dead_strip	_amdgpu_atif_verify_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_atif_verify_interface
_amdgpu_atif_verify_interface:          ; @amdgpu_atif_verify_interface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _ATIF_FUNCTION_VERIFY_INTERFACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATIF_FUNCTION_VERIFY_INTERFACE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_amdgpu_atif_call
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	x8, [x19]
	ldr	x1, [x8]
	cmp	x1, #11
	b.hi	LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	mov	w0, #12
	bl	_min
	mov	x2, x0
	ldr	x1, [x19]
	mov	x0, sp
	bl	_memcpy
	ldr	w1, [sp, #8]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	add	x0, x20, #4
	ldr	w1, [sp, #4]
	bl	_amdgpu_atif_parse_notification
	ldr	w1, [sp]
	mov	x0, x20
	bl	_amdgpu_atif_parse_functions
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_kfree
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ATIF_FUNCTION_VERIFY_INTERFACE,4,2 ; @ATIF_FUNCTION_VERIFY_INTERFACE
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ATIF buffer is too small: %zu\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"ATIF version %u\n"

	.no_dead_strip	_amdgpu_atif_verify_interface
.subsections_via_symbols
