	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mask_and_set_register_interruptible
_mask_and_set_register_interruptible:   ## @mask_and_set_register_interruptible
	.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
	movl	%r8d, %r12d
	movl	%ecx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r13
	shll	$8, %ebx
	orl	%edx, %ebx
	addq	$24, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	(%r13), %rax
	movq	%r13, %rdi
	movl	%ebx, %esi
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	*%rax
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_9
## %bb.7:
	movl	28(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	callq	*8(%r13)
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	xorl	%r15d, %r12d
	andl	%r14d, %r12d
	xorl	%r15d, %r12d
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	*16(%r13)
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	movl	28(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_dev_err
LBB0_5:
	movl	28(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_dev_vdbg
	jmp	LBB0_9
LBB0_2:
	movl	28(%r13), %edi
	leaq	L_.str(%rip), %rsi
LBB0_8:
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_dev_err
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read reg %#x: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to write reg %#x: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"mask: addr %#x => data %#x\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to modify reg %#x: %d\n"

	.no_dead_strip	_mask_and_set_register_interruptible
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mask_and_set_register_interruptible
_mask_and_set_register_interruptible:   ; @mask_and_set_register_interruptible
	.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	x23, x4
	mov	x24, x3
	mov	x22, x0
	orr	w20, w2, w1, lsl #8
	add	x19, x0, #24
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x24
	mov	x3, x23
	blr	x8
	mov	x21, x0
	tbz	w0, #31, LBB0_9
; %bb.2:
	ldr	w0, [x22, #28]
Lloh0:
	adrp	x1, l_.str.3@PAGE
Lloh1:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_3:
	ldr	x8, [x22, #8]
	mov	x0, x22
	mov	x1, x20
	blr	x8
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:
	bic	w8, w21, w24
	and	w9, w23, w24
	orr	w23, w8, w9
	ldr	x8, [x22, #16]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	blr	x8
	mov	x21, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
	ldr	w0, [x22, #28]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dev_err
LBB0_6:
	ldr	w0, [x22, #28]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	mov	x3, x23
	bl	_dev_vdbg
	b	LBB0_9
LBB0_7:
	ldr	w0, [x22, #28]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	mov	x2, x20
	mov	x3, x21
	bl	_dev_err
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read reg %#x: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to write reg %#x: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"mask: addr %#x => data %#x\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to modify reg %#x: %d\n"

	.no_dead_strip	_mask_and_set_register_interruptible
.subsections_via_symbols
