	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcan_probe
_pcan_probe:                            ## @pcan_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	_CONF_ENABLE_IRQ@GOTPCREL(%rip), %rax
	movq	_CONF_AUTO_SET_IO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rdi, %r15
	orl	%ecx, (%rdi)
	movq	_pcan_conf_check@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_pcmcia_loop_config
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	addq	$24, %r15
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, 4(%r15)
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_pcmcia_enable_device
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	addq	$24, %r15
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	addq	$24, %r15
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r14
	movq	%r15, 32(%rax)
	movq	%rax, 16(%r15)
	movq	32(%r15), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %ebx
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioport_map
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	_PCC_FW_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pcan_read_reg
	movq	%rax, 24(%r14)
	movq	_PCC_FW_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pcan_read_reg
	movq	%rax, 16(%r14)
	leaq	24(%r15), %r12
	movq	8(%r15), %rcx
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	leaq	L_.str.5(%rip), %rdx
	cmovneq	%rcx, %rdx
	movq	24(%r14), %rcx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %r8
	callq	_dev_info
	movq	%r14, %rdi
	callq	_pcan_add_channels
	cmpl	$0, 8(%r14)
	je	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	addq	$4, %rdi
	movq	_pcan_led_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_timer_setup
	movl	4(%r15), %edi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PCC_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_pcan_isr@GOTPCREL(%rip), %rsi
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:
	movl	%eax, %r13d
	movl	4(%r15), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	callq	_pcan_free_channels
	movl	%r13d, %ebx
	jmp	LBB0_15
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_10:
	leaq	24(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	(%r14), %edi
	callq	_ioport_unmap
LBB0_16:
	movq	%r14, %rdi
	callq	_kfree
	movq	$0, 16(%r15)
LBB0_17:
	movq	%r15, %rdi
	callq	_pcmcia_disable_device
	jmp	LBB0_18
LBB0_19:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pcan_set_can_power
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_CONF_ENABLE_IRQ,4,2            ## @CONF_ENABLE_IRQ
	.comm	_CONF_AUTO_SET_IO,4,2           ## @CONF_AUTO_SET_IO
	.comm	_pcan_conf_check,4,2            ## @pcan_conf_check
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcmcia_loop_config() error %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"no irq assigned\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"pcmcia_enable_device failed err=%d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"couldn't map io port into io memory\n"

	.comm	_PCC_FW_MAJOR,4,2               ## @PCC_FW_MAJOR
	.comm	_PCC_FW_MINOR,4,2               ## @PCC_FW_MINOR
L_.str.4:                               ## @.str.4
	.asciz	"PEAK-System pcmcia card %s fw %d.%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"PCAN-PC Card"

	.comm	_pcan_led_timer,4,2             ## @pcan_led_timer
	.comm	_pcan_isr,4,2                   ## @pcan_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_PCC_NAME,4,2                   ## @PCC_NAME
L_.str.6:                               ## @.str.6
	.asciz	"couldn't request irq%d\n"

	.no_dead_strip	_pcan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcan_probe
_pcan_probe:                            ; @pcan_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
Lloh0:
	adrp	x8, _CONF_ENABLE_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONF_ENABLE_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CONF_AUTO_SET_IO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CONF_AUTO_SET_IO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x0]
	orr	w8, w8, w9
	str	w8, [x0]
Lloh6:
	adrp	x8, _pcan_conf_check@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pcan_conf_check@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_pcmcia_loop_config
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
	add	x0, x19, #24
	str	x21, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	mov	x0, x21
	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
LBB0_3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_pcmcia_enable_device
	cbz	w0, LBB0_7
; %bb.5:
	mov	x21, x0
	add	x0, x19, #24
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_2
LBB0_6:
	add	x0, x19, #24
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_2
LBB0_7:
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.8:
	mov	x20, x0
	str	x19, [x0, #32]
	str	x0, [x19, #16]
	ldr	x8, [x19, #32]
	ldr	x0, [x8]
	ldr	w21, [x0]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x21
	bl	_ioport_map
	str	w0, [x20]
	cbz	w0, LBB0_13
; %bb.9:
Lloh21:
	adrp	x8, _PCC_FW_MAJOR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCC_FW_MAJOR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pcan_read_reg
	str	x0, [x20, #24]
Lloh24:
	adrp	x8, _PCC_FW_MINOR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PCC_FW_MINOR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pcan_read_reg
	mov	x4, x0
	str	x0, [x20, #16]
	add	x22, x19, #24
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
Lloh27:
	adrp	x9, l_.str.5@PAGE
Lloh28:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	x8, #0
	csel	x2, x9, x8, eq
	ldr	x3, [x20, #24]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	mov	x0, x20
	bl	_pcan_add_channels
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_14
; %bb.10:
	add	x0, x20, #4
Lloh31:
	adrp	x8, _pcan_led_timer@GOTPAGE
Lloh32:
	ldr	x8, [x8, _pcan_led_timer@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	ldr	w0, [x19, #4]
Lloh34:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x8, _PCC_NAME@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PCC_NAME@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
Lloh40:
	adrp	x1, _pcan_isr@GOTPAGE
Lloh41:
	ldr	x1, [x1, _pcan_isr@GOTPAGEOFF]
	mov	x4, x20
	bl	_request_irq
	mov	x21, x0
	cbz	w0, LBB0_18
; %bb.11:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	mov	x0, x20
	bl	_pcan_free_channels
	b	LBB0_15
LBB0_12:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_13:
	add	x0, x19, #24
Lloh47:
	adrp	x1, l_.str.3@PAGE
Lloh48:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_14:
Lloh52:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	ldr	w0, [x20]
	bl	_ioport_unmap
LBB0_16:
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19, #16]
LBB0_17:
	mov	x0, x19
	bl	_pcmcia_disable_device
	b	LBB0_2
LBB0_18:
	mov	x0, x20
	mov	w1, #1
	bl	_pcan_set_can_power
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_CONF_ENABLE_IRQ,4,2            ; @CONF_ENABLE_IRQ
	.comm	_CONF_AUTO_SET_IO,4,2           ; @CONF_AUTO_SET_IO
	.comm	_pcan_conf_check,4,2            ; @pcan_conf_check
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcmcia_loop_config() error %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"no irq assigned\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"pcmcia_enable_device failed err=%d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"couldn't map io port into io memory\n"

	.comm	_PCC_FW_MAJOR,4,2               ; @PCC_FW_MAJOR
	.comm	_PCC_FW_MINOR,4,2               ; @PCC_FW_MINOR
l_.str.4:                               ; @.str.4
	.asciz	"PEAK-System pcmcia card %s fw %d.%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"PCAN-PC Card"

	.comm	_pcan_led_timer,4,2             ; @pcan_led_timer
	.comm	_pcan_isr,4,2                   ; @pcan_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_PCC_NAME,4,2                   ; @PCC_NAME
l_.str.6:                               ; @.str.6
	.asciz	"couldn't request irq%d\n"

	.no_dead_strip	_pcan_probe
.subsections_via_symbols
