	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_atpx_switch_start
_radeon_atpx_switch_start:              ## @radeon_atpx_switch_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.1:
	movl	$4, -16(%rbp)
	movl	%esi, -12(%rbp)
	movl	$4, -32(%rbp)
	leaq	-16(%rbp), %rax
	movq	%rax, -24(%rbp)
	movl	(%rdi), %edi
	movq	_ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_radeon_atpx_call
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	callq	_kfree
	jmp	LBB0_4
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION,4,2 ## @ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_radeon_atpx_switch_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_atpx_switch_start
_radeon_atpx_switch_start:              ; @radeon_atpx_switch_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w8, #4
	stp	w8, w1, [sp, #8]
	str	w8, [sp, #16]
	add	x8, sp, #8
	str	x8, [sp, #24]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_radeon_atpx_call
	cbz	x0, LBB0_4
; %bb.2:
	bl	_kfree
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION,4,2 ; @ATPX_FUNCTION_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_radeon_atpx_switch_start
.subsections_via_symbols
