	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jmb38x_ms_probe
_jmb38x_ms_probe:                       ## @jmb38x_ms_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, %r15
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	movq	%r15, %rdi
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	movq	%r15, %rdi
	callq	_pci_set_master
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_request_regions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_jmb38x_ms_pmos
	movq	%r15, %rdi
	callq	_jmb38x_ms_count_slots
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:
	movl	%eax, %ebx
	leal	24(,%rbx,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%r15, 16(%rax)
	movl	%ebx, (%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_pci_set_drvdata
	cmpl	$0, (%r14)
	jle	LBB0_12
## %bb.7:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_jmb38x_ms_alloc_host
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	8(%r14), %rax
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	callq	_memstick_add_host
	testl	%eax, %eax
	jne	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jl	LBB0_8
	jmp	LBB0_16
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_pci_release_regions
	jmp	LBB0_16
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_10:
	movq	8(%r14), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_jmb38x_ms_free_host
	movq	8(%r14), %rax
	movq	$0, (%rax,%r12,8)
LBB0_11:
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jne	LBB0_16
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	%r14, %rdi
	callq	_kfree
LBB0_13:
	negl	%ebx
	movq	%r15, %rdi
	callq	_pci_release_regions
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_jmb38x_ms_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jmb38x_ms_probe
_jmb38x_ms_probe:                       ; @jmb38x_ms_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
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_mask
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.1:
	mov	x0, x19
	bl	_pci_enable_device
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.2:
	mov	x0, x19
	bl	_pci_set_master
Lloh0:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_request_regions
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_jmb38x_ms_pmos
	mov	x0, x19
	bl	_jmb38x_ms_count_slots
	cbz	w0, LBB0_10
; %bb.4:
	mov	x21, x0
	lsl	w8, w0, #3
	add	w0, w8, #24
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.5:
	mov	x20, x0
	str	x19, [x0, #16]
	str	w21, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.6:
	mov	x21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_jmb38x_ms_alloc_host
	ldr	x8, [x20, #8]
	lsl	x22, x21, #3
	str	x0, [x8, x22]
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22]
	cbz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_memstick_add_host
	cbnz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w22, #0
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_7
	b	LBB0_17
LBB0_10:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x19
	bl	_pci_release_regions
	b	LBB0_17
LBB0_11:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	b	LBB0_16
LBB0_12:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22]
	bl	_jmb38x_ms_free_host
	ldr	x8, [x20, #8]
	str	xzr, [x8, x22]
LBB0_13:
	cbz	w21, LBB0_15
; %bb.14:
	mov	w22, #0
	b	LBB0_17
LBB0_15:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
	mov	x0, x20
	bl	_kfree
LBB0_16:
	neg	w22, w21
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x19
	bl	_pci_disable_device
LBB0_17:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_jmb38x_ms_probe
.subsections_via_symbols
