	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sxps2_open
_sxps2_open:                            ## @sxps2_open
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movl	8(%rbx), %edi
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_xps2_interrupt@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edx
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movq	_XPS2_GIER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movq	_XPS2_GIER_GIE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_out_be32
	movq	_XPS2_IPIER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movq	_XPS2_IPIXR_RX_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_out_be32
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xps2_recv
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xps2_interrupt,4,2             ## @xps2_interrupt
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't allocate interrupt %d\n"

	.comm	_XPS2_GIER_OFFSET,8,3           ## @XPS2_GIER_OFFSET
	.comm	_XPS2_GIER_GIE_MASK,4,2         ## @XPS2_GIER_GIE_MASK
	.comm	_XPS2_IPIER_OFFSET,8,3          ## @XPS2_IPIER_OFFSET
	.comm	_XPS2_IPIXR_RX_ALL,4,2          ## @XPS2_IPIXR_RX_ALL
	.no_dead_strip	_sxps2_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sxps2_open
_sxps2_open:                            ; @sxps2_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0]
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x1, _xps2_interrupt@GOTPAGE
Lloh4:
	ldr	x1, [x1, _xps2_interrupt@GOTPAGEOFF]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldp	w2, w0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _XPS2_GIER_OFFSET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XPS2_GIER_OFFSET@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh9:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh10:
	adrp	x8, _XPS2_GIER_GIE_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XPS2_GIER_GIE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_out_be32
Lloh13:
	adrp	x8, _XPS2_IPIER_OFFSET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XPS2_IPIER_OFFSET@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh15:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh16:
	adrp	x8, _XPS2_IPIXR_RX_ALL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XPS2_IPIXR_RX_ALL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_out_be32
	add	x1, sp, #12
	mov	x0, x19
	bl	_xps2_recv
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_xps2_interrupt,4,2             ; @xps2_interrupt
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't allocate interrupt %d\n"

	.comm	_XPS2_GIER_OFFSET,8,3           ; @XPS2_GIER_OFFSET
	.comm	_XPS2_GIER_GIE_MASK,4,2         ; @XPS2_GIER_GIE_MASK
	.comm	_XPS2_IPIER_OFFSET,8,3          ; @XPS2_IPIER_OFFSET
	.comm	_XPS2_IPIXR_RX_ALL,4,2          ; @XPS2_IPIXR_RX_ALL
	.no_dead_strip	_sxps2_open
.subsections_via_symbols
