	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_drv_remove
_xen_drv_remove:                        ## @xen_drv_remove
	.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
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	_XenbusStateClosing@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_xenbus_switch_state
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_XenbusStateUnknown@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_xenbus_read_unsigned
	movq	_XenbusStateInitWait@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	je	LBB0_5
## %bb.1:
	movl	$-100, %r14d
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r14d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_msleep
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movq	%r15, %rsi
	callq	_xenbus_read_unsigned
	cmpl	(%r13), %eax
	jne	LBB0_2
	jmp	LBB0_5
LBB0_4:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_xenbus_read_unsigned
	movl	%eax, %edi
	callq	_xenbus_strstate
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
LBB0_5:
	movq	%r12, %rdi
	callq	_xen_drm_drv_fini
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_xenbus_frontend_closed
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XenbusStateClosing,4,2         ## @XenbusStateClosing
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state"

	.comm	_XenbusStateUnknown,4,2         ## @XenbusStateUnknown
	.comm	_XenbusStateInitWait,4,2        ## @XenbusStateInitWait
L_.str.1:                               ## @.str.1
	.asciz	"Backend state is %s while removing driver\n"

	.no_dead_strip	_xen_drv_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_drv_remove
_xen_drv_remove:                        ; @xen_drv_remove
	.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
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _XenbusStateClosing@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XenbusStateClosing@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xenbus_switch_state
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh3:
	adrp	x22, _XenbusStateUnknown@GOTPAGE
Lloh4:
	ldr	x22, [x22, _XenbusStateUnknown@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xenbus_read_unsigned
Lloh7:
	adrp	x23, _XenbusStateInitWait@GOTPAGE
Lloh8:
	ldr	x23, [x23, _XenbusStateInitWait@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.1:
	mov	w24, #-100
Lloh9:
	adrp	x21, l_.str@PAGE
Lloh10:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	adds	w24, w24, #1
	b.hs	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	bl	_msleep
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_xenbus_read_unsigned
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w2, [x22]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xenbus_read_unsigned
	bl	_xenbus_strstate
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_5:
	mov	x0, x20
	bl	_xen_drm_drv_fini
	mov	x0, x19
	bl	_xenbus_frontend_closed
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_XenbusStateClosing,4,2         ; @XenbusStateClosing
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state"

	.comm	_XenbusStateUnknown,4,2         ; @XenbusStateUnknown
	.comm	_XenbusStateInitWait,4,2        ; @XenbusStateInitWait
l_.str.1:                               ; @.str.1
	.asciz	"Backend state is %s while removing driver\n"

	.no_dead_strip	_xen_drv_remove
.subsections_via_symbols
