	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parport_ax88796_probe
_parport_ax88796_probe:                 ## @parport_ax88796_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, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	leaq	4(%r12), %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_resource_size
	movq	%rax, %r14
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	movq	%rdx, %r15
	movl	(%rbx), %edi
	movl	(%r12), %edx
	movq	%r14, %rsi
	callq	_request_mem_region
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_ioremap
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_10
## %bb.9:
	movq	_PARPORT_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movq	16(%r13), %rdi
	movq	_PARPORT_DMA_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_parport_ax88796_ops@GOTPCREL(%rip), %rcx
	movl	%ebx, %esi
	callq	_parport_register_port
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rdi
	shrq	%r15
	movq	%r13, (%rax)
	movq	%rax, 56(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%r13)
	movq	16(%r13), %rax
	movq	%rax, 40(%r13)
	movslq	%r15d, %rcx
	leaq	(%rax,%rcx,4), %rdx
	movq	%rdx, 32(%r13)
	addl	%ecx, %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rsi
	movq	%rsi, 24(%r13)
	movq	_AX_CPR_STRB@GOTPCREL(%rip), %rax
	movq	%rdi, %r15
	movl	(%rax), %edi
	callq	_writeb
	testl	%ebx, %ebx
	js	LBB0_15
## %bb.13:
	movq	_parport_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movl	%ebx, %edi
	movq	%r15, %r8
	callq	_request_irq
	movq	%r15, %rdi
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:
	movl	$1, (%r13)
	movq	%rdi, %r15
LBB0_15:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.4(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_info
	movq	%r15, %rdi
	callq	_parport_announce_port
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_20
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_18
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_16:
	movl	%eax, %r15d
	callq	_parport_remove_port
LBB0_17:
	movq	16(%r13), %rdi
	callq	_iounmap
LBB0_18:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_release_mem_region
LBB0_19:
	movq	%r13, %rdi
	callq	_kfree
LBB0_20:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no MEM specified\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"cannot reserve memory\n"

L_.str.2:                               ## @.str.2
	.asciz	"cannot ioremap region\n"

	.comm	_PARPORT_IRQ_NONE,4,2           ## @PARPORT_IRQ_NONE
	.comm	_PARPORT_DMA_NONE,4,2           ## @PARPORT_DMA_NONE
	.comm	_parport_ax88796_ops,4,2        ## @parport_ax88796_ops
L_.str.3:                               ## @.str.3
	.asciz	"failed to register parallel port\n"

	.comm	_AX_CPR_STRB,4,2                ## @AX_CPR_STRB
	.comm	_parport_irq_handler,4,2        ## @parport_irq_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.4:                               ## @.str.4
	.asciz	"attached parallel port driver\n"

	.no_dead_strip	_parport_ax88796_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parport_ax88796_probe
_parport_ax88796_probe:                 ; @parport_ax88796_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	add	x21, x22, #4
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_10
; %bb.2:
	mov	x23, x0
	bl	_resource_size
	mov	x20, x0
	ldr	w0, [x23]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_request_mem_region
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.3:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_ioremap
	str	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.4:
	mov	x0, x22
	mov	w1, #0
	bl	_platform_get_irq
Lloh6:
	adrp	x8, _PARPORT_IRQ_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PARPORT_IRQ_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #1
	csel	w24, w8, w0, lt
	ldr	x0, [x19, #16]
Lloh9:
	adrp	x8, _PARPORT_DMA_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PARPORT_DMA_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x3, _parport_ax88796_ops@GOTPAGE
Lloh13:
	ldr	x3, [x3, _parport_ax88796_ops@GOTPAGEOFF]
	mov	x1, x24
	bl	_parport_register_port
	cbz	x0, LBB0_14
; %bb.5:
	mov	x23, x0
	mov	x8, #-6148914691236517206
	movk	x8, #43691
	umulh	x8, x20, x8
	lsr	x8, x8, #1
	str	x19, [x0]
	stp	x21, x0, [x19, #48]
	ldr	x9, [x19, #16]
	lsl	x10, x8, #32
	add	x10, x9, x10, asr #30
	lsl	w8, w8, #1
	add	x1, x9, w8, sxtw #2
	stp	x10, x9, [x19, #32]
	str	x1, [x19, #24]
Lloh14:
	adrp	x8, _AX_CPR_STRB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AX_CPR_STRB@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_writeb
	tbnz	w24, #31, LBB0_8
; %bb.6:
Lloh17:
	adrp	x8, _parport_irq_handler@GOTPAGE
Lloh18:
	ldr	x8, [x8, _parport_irq_handler@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	w3, [x22]
	mov	x0, x24
	mov	x4, x23
	bl	_request_irq
	tbnz	w0, #31, LBB0_15
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	mov	x0, x22
	mov	x1, x23
	bl	_platform_set_drvdata
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	mov	x0, x23
	bl	_parport_announce_port
	mov	w24, #0
	b	LBB0_19
LBB0_9:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_19
LBB0_10:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	mov	x0, x21
	bl	_dev_err
Lloh32:
	adrp	x8, _ENXIO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_18
LBB0_13:
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh37:
	adrp	x8, _ENXIO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_17
LBB0_14:
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_15:
	mov	x24, x0
	mov	x0, x23
	bl	_parport_remove_port
LBB0_16:
	ldr	x0, [x19, #16]
	bl	_iounmap
LBB0_17:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_release_mem_region
LBB0_18:
	mov	x0, x19
	bl	_kfree
LBB0_19:
	mov	x0, x24
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no MEM specified\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"cannot reserve memory\n"

l_.str.2:                               ; @.str.2
	.asciz	"cannot ioremap region\n"

	.comm	_PARPORT_IRQ_NONE,4,2           ; @PARPORT_IRQ_NONE
	.comm	_PARPORT_DMA_NONE,4,2           ; @PARPORT_DMA_NONE
	.comm	_parport_ax88796_ops,4,2        ; @parport_ax88796_ops
l_.str.3:                               ; @.str.3
	.asciz	"failed to register parallel port\n"

	.comm	_AX_CPR_STRB,4,2                ; @AX_CPR_STRB
	.comm	_parport_irq_handler,4,2        ; @parport_irq_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.4:                               ; @.str.4
	.asciz	"attached parallel port driver\n"

	.no_dead_strip	_parport_ax88796_probe
.subsections_via_symbols
