	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvmc_probe
_ibmvmc_probe:                          ## @ibmvmc_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	%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
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movq	_ibmvmc_adapter@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%rbx, 8(%r14)
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_read_dma_window
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_ibmvmc_state_failed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ibmvmc@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$-1, %r14d
LBB0_11:
	movl	%r14d, %eax
	jmp	LBB0_12
LBB0_2:
	movq	8(%r14), %rdi
	movl	24(%r14), %edx
	movl	20(%r14), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	leaq	16(%r14), %rdi
	callq	_init_waitqueue_head
	movq	_ibmvmc_reset_task@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rsi
	callq	_kthread_run
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ibmvmc_state_failed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ibmvmc@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rdi
	callq	_PTR_ERR
	movq	$0, (%r14)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ibmvmc_adapter@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_ibmvmc_init_crq_queue
	movl	%eax, %r15d
	movq	_H_RESOURCE@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	cmpl	(%r13), %r15d
	je	LBB0_7
## %bb.6:
	movq	8(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ibmvmc_state_failed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ibmvmc@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rdi
	callq	_kthread_stop
	movq	$0, (%r12)
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_7:
	movq	_ibmvmc_state_crqinit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ibmvmc@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_ibmvmc_adapter@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ibmvmc_send_crq
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	cmpl	(%r13), %r15d
	je	LBB0_10
## %bb.9:
	movq	8(%r12), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_warn
LBB0_10:
	movq	_ibmvmc_adapter@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_set_drvdata
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ibmvmc_adapter,32,3            ## @ibmvmc_adapter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Probe for UA 0x%x\n"

	.comm	_ibmvmc_state_failed,8,3        ## @ibmvmc_state_failed
	.comm	_ibmvmc,8,3                     ## @ibmvmc
L_.str.1:                               ## @.str.1
	.asciz	"Probe: liobn 0x%x, riobn 0x%x\n"

	.comm	_ibmvmc_reset_task,4,2          ## @ibmvmc_reset_task
L_.str.2:                               ## @.str.2
	.asciz	"ibmvmc"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to start reset thread\n"

	.comm	_H_RESOURCE,4,2                 ## @H_RESOURCE
L_.str.4:                               ## @.str.4
	.asciz	"Error initializing CRQ.  rc = 0x%x\n"

	.comm	_ibmvmc_state_crqinit,8,3       ## @ibmvmc_state_crqinit
L_.str.5:                               ## @.str.5
	.asciz	"Failed to send initialize CRQ message\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_ibmvmc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvmc_probe
_ibmvmc_probe:                          ; @ibmvmc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	x1, #0
	bl	_dev_set_drvdata
Lloh0:
	adrp	x20, _ibmvmc_adapter@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ibmvmc_adapter@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	x19, [x20, #8]
	ldr	w2, [x19, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	mov	x1, x20
	bl	_read_dma_window
	cbz	w0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _ibmvmc_state_failed@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ibmvmc_state_failed@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _ibmvmc@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ibmvmc@GOTPAGEOFF]
Lloh9:
	str	x8, [x9]
	mov	w0, #-1
	b	LBB0_11
LBB0_2:
	ldr	x0, [x20, #8]
	ldp	w3, w2, [x20, #20]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	add	x0, x20, #16
	bl	_init_waitqueue_head
Lloh12:
	adrp	x8, _ibmvmc_reset_task@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ibmvmc_reset_task@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_kthread_run
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x20, #8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh19:
	adrp	x8, _ibmvmc_state_failed@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ibmvmc_state_failed@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _ibmvmc@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ibmvmc@GOTPAGEOFF]
Lloh24:
	str	x8, [x9]
	ldr	x0, [x20]
	bl	_PTR_ERR
	str	xzr, [x20]
	b	LBB0_11
LBB0_4:
Lloh25:
	adrp	x20, _ibmvmc_adapter@GOTPAGE
Lloh26:
	ldr	x20, [x20, _ibmvmc_adapter@GOTPAGEOFF]
	mov	x0, x20
	bl	_ibmvmc_init_crq_queue
	mov	x21, x0
Lloh27:
	adrp	x22, _H_RESOURCE@GOTPAGE
Lloh28:
	ldr	x22, [x22, _H_RESOURCE@GOTPAGEOFF]
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x22]
	cmp	w21, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x0, [x20, #8]
	str	x21, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
Lloh31:
	adrp	x8, _ibmvmc_state_failed@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ibmvmc_state_failed@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _ibmvmc@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ibmvmc@GOTPAGEOFF]
Lloh36:
	str	x8, [x9]
	ldr	x0, [x20]
	bl	_kthread_stop
	str	xzr, [x20]
Lloh37:
	adrp	x8, _EPERM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_7:
Lloh40:
	adrp	x8, _ibmvmc_state_crqinit@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ibmvmc_state_crqinit@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
Lloh43:
	adrp	x9, _ibmvmc@GOTPAGE
Lloh44:
	ldr	x9, [x9, _ibmvmc@GOTPAGEOFF]
Lloh45:
	str	x8, [x9]
Lloh46:
	adrp	x20, _ibmvmc_adapter@GOTPAGE
Lloh47:
	ldr	x20, [x20, _ibmvmc_adapter@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_ibmvmc_send_crq
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w8, [x22]
	cmp	w21, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x0, [x20, #8]
Lloh48:
	adrp	x1, l_.str.5@PAGE
Lloh49:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_warn
LBB0_10:
Lloh50:
	adrp	x1, _ibmvmc_adapter@GOTPAGE
Lloh51:
	ldr	x1, [x1, _ibmvmc_adapter@GOTPAGEOFF]
	mov	x0, x19
	bl	_dev_set_drvdata
	mov	w0, #0
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_ibmvmc_adapter,32,3            ; @ibmvmc_adapter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Probe for UA 0x%x\n"

	.comm	_ibmvmc_state_failed,8,3        ; @ibmvmc_state_failed
	.comm	_ibmvmc,8,3                     ; @ibmvmc
l_.str.1:                               ; @.str.1
	.asciz	"Probe: liobn 0x%x, riobn 0x%x\n"

	.comm	_ibmvmc_reset_task,4,2          ; @ibmvmc_reset_task
l_.str.2:                               ; @.str.2
	.asciz	"ibmvmc"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to start reset thread\n"

	.comm	_H_RESOURCE,4,2                 ; @H_RESOURCE
l_.str.4:                               ; @.str.4
	.asciz	"Error initializing CRQ.  rc = 0x%x\n"

	.comm	_ibmvmc_state_crqinit,8,3       ; @ibmvmc_state_crqinit
l_.str.5:                               ; @.str.5
	.asciz	"Failed to send initialize CRQ message\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_ibmvmc_probe
.subsections_via_symbols
