	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwch_register_mem              ## -- Begin function iwch_register_mem
	.p2align	4, 0x90
_iwch_register_mem:                     ## @iwch_register_mem
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movl	28(%rdx), %edx
	movl	24(%rbx), %ecx
	movl	20(%rbx), %r8d
	movl	16(%rbx), %r9d
	movl	12(%rbx), %r10d
	addl	$-12, %eax
	movl	(%rbx), %r11d
	movl	4(%rbx), %r15d
	leaq	-28(%rbp), %rsi
	pushq	%r11
	pushq	%r15
	pushq	%rax
	pushq	%r10
	callq	_cxio_register_phys_mem
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_2:
	movl	-28(%rbp), %esi
	movq	%rbx, %rdi
	callq	_iwch_finish_mem_reg
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_cxio_dereg_mem
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwch_register_mem              ; -- Begin function iwch_register_mem
	.p2align	2
_iwch_register_mem:                     ; @iwch_register_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x0
	ldr	w2, [x2, #28]
	ldp	w4, w8, [x20, #20]
	ldp	w6, w5, [x20, #12]
	sub	w7, w3, #12
	ldp	w10, w9, [x20]
	stp	w9, w10, [sp]
	add	x1, sp, #12
	mov	x3, x8
	bl	_cxio_register_phys_mem
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
LBB0_2:
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_iwch_finish_mem_reg
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldp	w2, w1, [x20, #4]
	ldr	w3, [x20]
	mov	x0, x19
	bl	_cxio_dereg_mem
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
