	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psmouse_attr_set_helper        ## -- Begin function psmouse_attr_set_helper
	.p2align	4, 0x90
_psmouse_attr_set_helper:               ## @psmouse_attr_set_helper
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_to_serio_port
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_psmouse_attr
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_serio_pin_driver
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.1:
	movq	16(%r14), %rax
	cmpq	_psmouse_drv@GOTPCREL(%rip), %rax
	je	LBB0_3
## %bb.2:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_3:
	movq	_psmouse_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.4:
	movq	%r14, %rdi
	callq	_serio_get_drvdata
	movq	%rax, %r13
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.6:
	movq	(%r13), %rax
	movq	_PSMOUSE_IGNORE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_5:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
LBB0_8:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.10:
	movq	8(%r14), %rax
	movq	_SERIO_PS_PSTHRU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.11:
	callq	_serio_get_drvdata
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_psmouse_deactivate
	jmp	LBB0_12
LBB0_9:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_12:
	movq	%r13, %rdi
	callq	_psmouse_deactivate
LBB0_13:
	movq	%r15, %rcx
	movq	%r12, %rdx
	movl	16(%rbx), %esi
	movq	%r13, %r15
	movq	%r13, %rdi
	callq	*(%rbx)
	movl	%eax, %r13d
	cmpq	$0, 8(%rbx)
	je	LBB0_18
## %bb.14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_psmouse_activate
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_psmouse_activate
LBB0_18:
	movq	_psmouse_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_19:
	movq	%r14, %rdi
	callq	_serio_unpin_driver
LBB0_20:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_psmouse_drv,4,2                ## @psmouse_drv
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_psmouse_mutex,4,2              ## @psmouse_mutex
	.comm	_PSMOUSE_IGNORE,8,3             ## @PSMOUSE_IGNORE
	.comm	_SERIO_PS_PSTHRU,8,3            ## @SERIO_PS_PSTHRU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psmouse_attr_set_helper        ; -- Begin function psmouse_attr_set_helper
	.p2align	2
_psmouse_attr_set_helper:               ; @psmouse_attr_set_helper
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	bl	_to_serio_port
	mov	x19, x0
	mov	x0, x22
	bl	_to_psmouse_attr
	mov	x22, x0
	mov	x0, x19
	bl	_serio_pin_driver
	mov	x24, x0
	cbnz	w0, LBB0_20
; %bb.1:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _psmouse_drv@GOTPAGE
Lloh1:
	ldr	x9, [x9, _psmouse_drv@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_19
LBB0_3:
Lloh5:
	adrp	x0, _psmouse_mutex@GOTPAGE
Lloh6:
	ldr	x0, [x0, _psmouse_mutex@GOTPAGEOFF]
	bl	_mutex_lock_interruptible
	mov	x24, x0
	cbnz	w0, LBB0_19
; %bb.4:
	mov	x0, x19
	bl	_serio_get_drvdata
	mov	x23, x0
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x23]
Lloh7:
	adrp	x9, _PSMOUSE_IGNORE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PSMOUSE_IGNORE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_18
LBB0_7:
	mov	x25, #0
	b	LBB0_13
LBB0_8:
	ldr	x0, [x19]
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _SERIO_PS_PSTHRU@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SERIO_PS_PSTHRU@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	bl	_serio_get_drvdata
	mov	x25, x0
	bl	_psmouse_deactivate
	b	LBB0_12
LBB0_11:
	mov	x25, #0
LBB0_12:
	mov	x0, x23
	bl	_psmouse_deactivate
LBB0_13:
	ldr	x8, [x22]
	ldr	w1, [x22, #16]
	mov	x0, x23
	mov	x2, x21
	mov	x3, x20
	blr	x8
	mov	x24, x0
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_18
; %bb.14:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmn	w24, w8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x23
	bl	_psmouse_activate
LBB0_16:
	cbz	x25, LBB0_18
; %bb.17:
	mov	x0, x25
	bl	_psmouse_activate
LBB0_18:
Lloh19:
	adrp	x0, _psmouse_mutex@GOTPAGE
Lloh20:
	ldr	x0, [x0, _psmouse_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_19:
	mov	x0, x19
	bl	_serio_unpin_driver
LBB0_20:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_psmouse_drv,4,2                ; @psmouse_drv
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_psmouse_mutex,4,2              ; @psmouse_mutex
	.comm	_PSMOUSE_IGNORE,8,3             ; @PSMOUSE_IGNORE
	.comm	_SERIO_PS_PSTHRU,8,3            ; @SERIO_PS_PSTHRU
.subsections_via_symbols
