	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcmcia_device_probe
_pcmcia_device_probe:                   ## @pcmcia_device_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_get_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_pcmcia_dev
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_to_pcmcia_drv
	movq	%rax, %r13
	movq	32(%r14), %r15
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpq	$0, 8(%r13)
	je	LBB0_15
## %bb.3:
	cmpl	$0, 60(%r14)
	je	LBB0_15
## %bb.4:
	movl	16(%r13), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_15
## %bb.5:
	movq	32(%r14), %rdi
	movl	56(%r14), %esi
	movq	_CISTPL_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	callq	_pccard_read_tuple
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	jmp	LBB0_8
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	negl	%eax
	movl	%eax, %r12d
	jmp	LBB0_17
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_6:
	movq	-48(%rbp), %rdx
	movq	%rdx, 48(%r14)
	movq	-56(%rbp), %rax
	movq	(%rax), %rcx
	movq	%rcx, 40(%r14)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_8:
	movq	%r14, %rdi
	callq	*8(%r13)
	movl	(%r13), %edx
	testl	%eax, %eax
	je	LBB0_9
## %bb.14:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	16(%r13), %edi
	callq	_module_put
LBB0_17:
	movq	%rbx, %rdi
	callq	_put_device
LBB0_18:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movslq	(%r14), %r8
	imulq	$1717986919, %r8, %rcx          ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$34, %rcx
	addl	%eax, %ecx
	leal	(%rcx,%rcx), %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r8d
	movl	4(%r14), %r9d
	movl	8(%r14), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.4(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	16(%r14), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	8(%rax), %r8d
	movl	12(%rax), %r9d
	movl	16(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%r15)
	je	LBB0_13
## %bb.10:
	movq	32(%r14), %rax
	cmpl	$1, (%rax)
	jne	LBB0_13
## %bb.11:
	cmpq	$0, 24(%r14)
	jne	LBB0_13
## %bb.12:
	movq	_PCMCIA_UEVENT_REQUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pcmcia_parse_uevents
LBB0_13:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying to bind to %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CISTPL_CONFIG,4,2              ## @CISTPL_CONFIG
L_.str.1:                               ## @.str.1
	.asciz	"base %x, regs %x"

L_.str.2:                               ## @.str.2
	.asciz	"pcmcia: could not parse base and rmask0 of CIS\n"

L_.str.3:                               ## @.str.3
	.asciz	"binding to %s failed with %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s bound: Vpp %d.%d, idx %x, IRQ %d"

L_.str.5:                               ## @.str.5
	.asciz	"resources: ioport %pR %pR iomem %pR %pR %pR"

	.comm	_PCMCIA_UEVENT_REQUERY,4,2      ## @PCMCIA_UEVENT_REQUERY
	.no_dead_strip	_pcmcia_device_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcmcia_device_probe
_pcmcia_device_probe:                   ; @pcmcia_device_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	bl	_get_device
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_to_pcmcia_dev
	mov	x20, x0
	ldr	w0, [x19]
	bl	_to_pcmcia_drv
	mov	x22, x0
	ldr	x21, [x20, #32]
	ldr	w2, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w8, [x20, #60]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w0, [x22, #16]
	bl	_try_module_get
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x0, [x20, #32]
	ldr	w1, [x20, #56]
Lloh2:
	adrp	x8, _CISTPL_CONFIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CISTPL_CONFIG@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #32
	bl	_pccard_read_tuple
	cbz	w0, LBB0_10
; %bb.5:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	stp	xzr, xzr, [x20, #40]
	b	LBB0_11
LBB0_6:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.7:
	neg	w23, w8
	b	LBB0_13
LBB0_8:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_9:
	mov	w23, #0
	b	LBB0_14
LBB0_10:
	ldp	x8, x2, [sp, #32]
	str	x2, [x20, #48]
	ldr	x8, [x8]
	str	x8, [x20, #40]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
LBB0_11:
	ldr	x8, [x22, #8]
	mov	x0, x20
	blr	x8
	ldr	w2, [x22]
	cbz	w0, LBB0_15
; %bb.12:
	mov	x23, x0
	str	x23, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w0, [x22, #16]
	bl	_module_put
LBB0_13:
	mov	x0, x19
	bl	_put_device
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	ldp	w9, w10, [x20]
	smull	x8, w9, w8
	lsr	x11, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w11
	mov	w11, #10
	msub	w9, w8, w11, w9
	ldr	w11, [x20, #8]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x20, #16]
	ldp	w2, w9, [x8]
	ldp	w10, w11, [x8, #8]
	ldr	w8, [x8, #16]
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	add	x19, x21, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_19
; %bb.16:
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_19
; %bb.17:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_19
; %bb.18:
Lloh21:
	adrp	x8, _PCMCIA_UEVENT_REQUERY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCMCIA_UEVENT_REQUERY@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pcmcia_parse_uevents
LBB0_19:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w23, #0
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to bind to %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CISTPL_CONFIG,4,2              ; @CISTPL_CONFIG
l_.str.1:                               ; @.str.1
	.asciz	"base %x, regs %x"

l_.str.2:                               ; @.str.2
	.asciz	"pcmcia: could not parse base and rmask0 of CIS\n"

l_.str.3:                               ; @.str.3
	.asciz	"binding to %s failed with %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s bound: Vpp %d.%d, idx %x, IRQ %d"

l_.str.5:                               ; @.str.5
	.asciz	"resources: ioport %pR %pR iomem %pR %pR %pR"

	.comm	_PCMCIA_UEVENT_REQUERY,4,2      ; @PCMCIA_UEVENT_REQUERY
	.no_dead_strip	_pcmcia_device_probe
.subsections_via_symbols
