	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ecx
	movq	%rdi, %r15
	movl	%esi, %r14d
	sarl	$3, %r14d
	movq	_PCF50633_REG_INT1M@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%r14d, %ebx
	andb	$7, %cl
	movl	$1, %r13d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	addq	$8, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	___pcf50633_read
	movl	%eax, %r12d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.1:
	testl	%r12d, %r12d
	js	LBB0_7
## %bb.2:
	orl	%r13d, -44(%rbp)
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	___pcf50633_write
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	orl	%r13d, (%rax,%rcx,4)
	jmp	LBB0_7
LBB0_4:
	testl	%r12d, %r12d
	js	LBB0_7
## %bb.5:
	notl	%r13d
	andl	%r13d, -44(%rbp)
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	___pcf50633_write
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	andl	%r13d, (%rax,%rcx,4)
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$24, %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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x2
	mov	x20, x0
	asr	w24, w1, #3
Lloh0:
	adrp	x8, _PCF50633_REG_INT1M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCF50633_REG_INT1M@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w21, w8, w24
	and	w8, w1, #0x7
	mov	w9, #1
	lsl	w25, w9, w8
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	___pcf50633_read
	mov	x22, x0
	cbz	w23, LBB0_4
; %bb.1:
	tbnz	w22, #31, LBB0_7
; %bb.2:
	ldr	w8, [sp, #12]
	orr	w8, w8, w25
	str	w8, [sp, #12]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	___pcf50633_write
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	x8, [x20]
	sbfiz	x9, x24, #2, #32
	ldr	w10, [x8, x9]
	orr	w10, w10, w25
	str	w10, [x8, x9]
	b	LBB0_7
LBB0_4:
	tbnz	w22, #31, LBB0_7
; %bb.5:
	ldr	w8, [sp, #12]
	bic	w8, w8, w25
	str	w8, [sp, #12]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	___pcf50633_write
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mvn	w8, w25
	ldr	x9, [x20]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	sbfiz	x10, x24, #2, #32
	ldr	w11, [x9, x10]
	and	w8, w11, w8
	str	w8, [x9, x10]
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	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
