	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pcf50633_irq_mask_set
___pcf50633_irq_mask_set:               ## @__pcf50633_irq_mask_set
	.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	%edx, %r15d
	movl	%esi, %ecx
	movq	%rdi, %r14
	movl	%esi, %r13d
	sarl	$3, %r13d
	movq	_PCF50633_REG_INT1M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andb	$7, %cl
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	addl	%r13d, %esi
	testl	%edx, %edx
	movl	%ebx, %ecx
	cmovel	%edx, %ecx
	movl	%ebx, %edx
	callq	_pcf50633_reg_set_bit_mask
	leaq	8(%r14), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movslq	%r13d, %rcx
	orl	%ebx, (%rax,%rcx,4)
	jmp	LBB0_3
LBB0_2:
	notl	%ebx
	movq	(%r14), %rax
	movslq	%r13d, %rcx
	andl	%ebx, (%rax,%rcx,4)
LBB0_3:
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCF50633_REG_INT1M,4,2         ## @PCF50633_REG_INT1M
	.no_dead_strip	___pcf50633_irq_mask_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pcf50633_irq_mask_set
___pcf50633_irq_mask_set:               ; @__pcf50633_irq_mask_set
	.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, x2
	mov	x20, x0
	asr	w23, w1, #3
Lloh0:
	adrp	x8, _PCF50633_REG_INT1M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCF50633_REG_INT1M@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, w23
	and	w9, w1, #0x7
	mov	w10, #1
	lsl	w19, w10, w9
	cmp	w2, #0
	csel	w3, wzr, w19, eq
	mov	x1, x8
	mov	x2, x19
	bl	_pcf50633_reg_set_bit_mask
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	cbz	w22, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	sbfiz	x9, x23, #2, #32
	ldr	w10, [x8, x9]
	orr	w10, w10, w19
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sbfiz	x9, x23, #2, #32
	ldr	w10, [x8, x9]
	bic	w10, w10, w19
LBB0_3:
	str	w10, [x8, x9]
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PCF50633_REG_INT1M,4,2         ; @PCF50633_REG_INT1M
	.no_dead_strip	___pcf50633_irq_mask_set
.subsections_via_symbols
