	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parport_ip32_dma_register
_parport_ip32_dma_register:             ## @parport_ip32_dma_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_parport_ip32_dma@GOTPCREL(%rip), %rbx
	leaq	4(%rbx), %rdi
	callq	_spin_lock_init
	movl	$1, (%rbx)
	movq	_MACEPAR_CTLSTAT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mace@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_writeq
	movq	_MACEISA_PAR_CTXA_IRQ@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_parport_ip32_dma_interrupt@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_request_irq
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_MACEISA_PAR_CTXB_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_request_irq
	movl	%eax, %ebx
	movl	$0, %eax
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_free_irq
	movl	%ebx, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_parport_ip32_dma,8,2           ## @parport_ip32_dma
	.comm	_MACEPAR_CTLSTAT_RESET,4,2      ## @MACEPAR_CTLSTAT_RESET
	.comm	_mace,8,3                       ## @mace
	.comm	_MACEISA_PAR_CTXA_IRQ,4,2       ## @MACEISA_PAR_CTXA_IRQ
	.comm	_parport_ip32_dma_interrupt,4,2 ## @parport_ip32_dma_interrupt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parport_ip32"

	.comm	_MACEISA_PAR_CTXB_IRQ,4,2       ## @MACEISA_PAR_CTXB_IRQ
	.comm	_MACEISA_PAR_MERR_IRQ,4,2       ## @MACEISA_PAR_MERR_IRQ
	.comm	_parport_ip32_merr_interrupt,4,2 ## @parport_ip32_merr_interrupt
	.no_dead_strip	_parport_ip32_dma_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parport_ip32_dma_register
_parport_ip32_dma_register:             ; @parport_ip32_dma_register
	.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
Lloh0:
	adrp	x19, _parport_ip32_dma@GOTPAGE
Lloh1:
	ldr	x19, [x19, _parport_ip32_dma@GOTPAGEOFF]
	add	x0, x19, #4
	bl	_spin_lock_init
	mov	w8, #1
	str	w8, [x19]
Lloh2:
	adrp	x8, _MACEPAR_CTLSTAT_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MACEPAR_CTLSTAT_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _mace@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mace@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	bl	_writeq
Lloh8:
	adrp	x20, _MACEISA_PAR_CTXA_IRQ@GOTPAGE
Lloh9:
	ldr	x20, [x20, _MACEISA_PAR_CTXA_IRQ@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh10:
	adrp	x21, _parport_ip32_dma_interrupt@GOTPAGE
Lloh11:
	ldr	x21, [x21, _parport_ip32_dma_interrupt@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #0
	mov	x4, #0
	bl	_request_irq
	mov	x19, x0
	cbnz	w0, LBB0_3
; %bb.1:
Lloh14:
	adrp	x8, _MACEISA_PAR_CTXB_IRQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MACEISA_PAR_CTXB_IRQ@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x21]
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #0
	mov	x4, #0
	bl	_request_irq
	mov	x19, x0
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x20]
	mov	x1, #0
	bl	_free_irq
LBB0_3:
	mov	x0, x19
	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 AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_parport_ip32_dma,8,2           ; @parport_ip32_dma
	.comm	_MACEPAR_CTLSTAT_RESET,4,2      ; @MACEPAR_CTLSTAT_RESET
	.comm	_mace,8,3                       ; @mace
	.comm	_MACEISA_PAR_CTXA_IRQ,4,2       ; @MACEISA_PAR_CTXA_IRQ
	.comm	_parport_ip32_dma_interrupt,4,2 ; @parport_ip32_dma_interrupt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parport_ip32"

	.comm	_MACEISA_PAR_CTXB_IRQ,4,2       ; @MACEISA_PAR_CTXB_IRQ
	.comm	_MACEISA_PAR_MERR_IRQ,4,2       ; @MACEISA_PAR_MERR_IRQ
	.comm	_parport_ip32_merr_interrupt,4,2 ; @parport_ip32_merr_interrupt
	.no_dead_strip	_parport_ip32_dma_register
.subsections_via_symbols
