	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goldfish_pipe_probe
_goldfish_pipe_probe:                   ## @goldfish_pipe_probe
	.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
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	_goldfish_pipe_device_deinit@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	%r15, %rdi
	addq	$20, %rdi
	callq	_spin_lock_init
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_resource_size
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_devm_ioremap
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_PIPE_DRIVER_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PIPE_REG_VERSION@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	8(%r15), %rsi
	callq	_writel
	movq	(%rbx), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movq	%rax, (%r15)
	movq	_PIPE_CURRENT_DEVICE_VERSION@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_goldfish_pipe_device_init      ## TAILCALL
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_goldfish_pipe_device_deinit,4,2 ## @goldfish_pipe_device_deinit
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't allocate i/o page\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"ioremap failed\n"

	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.comm	_PIPE_DRIVER_VERSION,4,2        ## @PIPE_DRIVER_VERSION
	.comm	_PIPE_REG_VERSION,8,3           ## @PIPE_REG_VERSION
	.comm	_PIPE_CURRENT_DEVICE_VERSION,8,3 ## @PIPE_CURRENT_DEVICE_VERSION
	.no_dead_strip	_goldfish_pipe_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goldfish_pipe_probe
_goldfish_pipe_probe:                   ; @goldfish_pipe_probe
	.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, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _goldfish_pipe_device_deinit@GOTPAGE
Lloh4:
	ldr	x8, [x8, _goldfish_pipe_device_deinit@GOTPAGEOFF]
	str	x8, [x0, #24]
	add	x0, x0, #20
	bl	_spin_lock_init
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	bl	_resource_size
Lloh8:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
	cmp	x0, x2
	b.ge	LBB0_8
LBB0_3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
LBB0_5:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ret
LBB0_8:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_devm_ioremap
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.9:
Lloh17:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_5
; %bb.10:
	ldr	w8, [x0]
	str	w8, [x20, #16]
Lloh20:
	adrp	x8, _PIPE_DRIVER_VERSION@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PIPE_DRIVER_VERSION@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
Lloh23:
	adrp	x21, _PIPE_REG_VERSION@GOTPAGE
Lloh24:
	ldr	x21, [x21, _PIPE_REG_VERSION@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	str	x0, [x20]
Lloh25:
	adrp	x8, _PIPE_CURRENT_DEVICE_VERSION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PIPE_CURRENT_DEVICE_VERSION@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, lt
	bl	_WARN_ON
	cbnz	x0, LBB0_5
; %bb.11:
	mov	x0, x19
	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	_goldfish_pipe_device_init
LBB0_12:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_goldfish_pipe_device_deinit,4,2 ; @goldfish_pipe_device_deinit
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't allocate i/o page\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"ioremap failed\n"

	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.comm	_PIPE_DRIVER_VERSION,4,2        ; @PIPE_DRIVER_VERSION
	.comm	_PIPE_REG_VERSION,8,3           ; @PIPE_REG_VERSION
	.comm	_PIPE_CURRENT_DEVICE_VERSION,8,3 ; @PIPE_CURRENT_DEVICE_VERSION
	.no_dead_strip	_goldfish_pipe_probe
.subsections_via_symbols
