	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcxhr_write_io_num_reg_cont    ## -- Begin function pcxhr_write_io_num_reg_cont
	.p2align	4, 0x90
_pcxhr_write_io_num_reg_cont:           ## @pcxhr_write_io_num_reg_cont
	.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
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%r13), %eax
	andl	%ebx, %eax
	cmpl	%r12d, %eax
	jne	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_snd_printdd
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movl	$0, (%r14)
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_CMD_ACCESS_IO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_pcxhr_init_rmh
	movq	_IO_NUM_REG_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx
	orl	%eax, (%rcx)
	movl	%ebx, 4(%rcx)
	movl	%r12d, 8(%rcx)
	movl	$3, -56(%rbp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_pcxhr_send_msg_nolock
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	notl	%ebx
	andl	(%r13), %ebx
	orl	%r12d, %ebx
	movl	%ebx, (%r13)
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %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	"IO_NUM_REG_CONT mask %x already is set to %x\n"

	.comm	_CMD_ACCESS_IO_WRITE,4,2        ## @CMD_ACCESS_IO_WRITE
	.comm	_IO_NUM_REG_CONT,4,2            ## @IO_NUM_REG_CONT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcxhr_write_io_num_reg_cont    ; -- Begin function pcxhr_write_io_num_reg_cont
	.p2align	2
_pcxhr_write_io_num_reg_cont:           ; @pcxhr_write_io_num_reg_cont
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x23]
	and	w8, w8, w22
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_snd_printdd
	cbz	x20, LBB0_3
; %bb.2:
	str	wzr, [x20]
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w24, #0
	b	LBB0_8
LBB0_4:
Lloh2:
	adrp	x8, _CMD_ACCESS_IO_WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_ACCESS_IO_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_pcxhr_init_rmh
Lloh5:
	adrp	x8, _IO_NUM_REG_CONT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IO_NUM_REG_CONT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [sp]
	ldr	w10, [x9]
	orr	w8, w10, w8
	stp	w8, w22, [x9]
	str	w21, [x9, #8]
	mov	w8, #3
	str	w8, [sp, #8]
	mov	x1, sp
	mov	x0, x23
	bl	_pcxhr_send_msg_nolock
	mov	x24, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x23]
	bic	w8, w8, w22
	orr	w8, w8, w21
	str	w8, [x23]
	cbz	x20, LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x20]
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IO_NUM_REG_CONT mask %x already is set to %x\n"

	.comm	_CMD_ACCESS_IO_WRITE,4,2        ; @CMD_ACCESS_IO_WRITE
	.comm	_IO_NUM_REG_CONT,4,2            ; @IO_NUM_REG_CONT
.subsections_via_symbols
