	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_dev_add
_sdp_dev_add:                           ## @sdp_dev_add
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_M_SDP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$8, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ib_alloc_pd
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_SDP_FMR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movq	_SDP_FMR_POOL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_SDP_FMR_DIRTY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$1, -52(%rbp)
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_ib_create_fmr_pool
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %edi
	callq	_ib_dealloc_pd
LBB0_4:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_free
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_sdp_client@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_ib_set_client_data
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_M_SDP,4,2                      ## @M_SDP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_SDP_FMR_SIZE,4,2               ## @SDP_FMR_SIZE
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
	.comm	_SDP_FMR_POOL_SIZE,4,2          ## @SDP_FMR_POOL_SIZE
	.comm	_SDP_FMR_DIRTY_SIZE,4,2         ## @SDP_FMR_DIRTY_SIZE
	.comm	_sdp_client,4,2                 ## @sdp_client
	.no_dead_strip	_sdp_dev_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_dev_add
_sdp_dev_add:                           ; @sdp_dev_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x21, _M_SDP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _M_SDP@GOTPAGEOFF]
Lloh2:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #8
	bl	_malloc
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_ib_alloc_pd
	str	w0, [x20]
	bl	_IS_ERR
	cbnz	x0, LBB0_3
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh8:
	adrp	x8, _SDP_FMR_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDP_FMR_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
	stp	w9, w8, [sp, #24]
Lloh16:
	ldr	w8, [x10]
Lloh17:
	adrp	x9, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _SDP_FMR_POOL_SIZE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SDP_FMR_POOL_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _SDP_FMR_DIRTY_SIZE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _SDP_FMR_DIRTY_SIZE@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	stp	w10, w9, [sp, #16]
	mov	w9, #1
	stp	w8, w9, [sp, #8]
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_ib_create_fmr_pool
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x20]
	bl	_ib_dealloc_pd
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_free
LBB0_4:
	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
	add	sp, sp, #80
	ret
LBB0_5:
Lloh26:
	adrp	x1, _sdp_client@GOTPAGE
Lloh27:
	ldr	x1, [x1, _sdp_client@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_ib_set_client_data
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_M_SDP,4,2                      ; @M_SDP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_SDP_FMR_SIZE,4,2               ; @SDP_FMR_SIZE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
	.comm	_SDP_FMR_POOL_SIZE,4,2          ; @SDP_FMR_POOL_SIZE
	.comm	_SDP_FMR_DIRTY_SIZE,4,2         ; @SDP_FMR_DIRTY_SIZE
	.comm	_sdp_client,4,2                 ; @sdp_client
	.no_dead_strip	_sdp_dev_add
.subsections_via_symbols
