	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swapgeom_strategy
_swapgeom_strategy:                     ## @swapgeom_strategy
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_sw_dev_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	8(%r15), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_swapgeom_acquire
	movq	_sw_dev_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	(%r12), %rax
	movq	_BIO_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_g_new_bio
	jmp	LBB0_6
LBB0_1:
	movq	_sw_dev_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r12)
	movq	_BIO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 56(%r12)
	jmp	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	callq	_g_alloc_bio
LBB0_6:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, 48(%r12)
	movq	%r15, 56(%rbx)
	movq	%r12, 48(%rbx)
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movl	8(%r12), %eax
	subl	(%r15), %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, 8(%rbx)
	movl	40(%r12), %eax
	movl	%eax, 40(%rbx)
	movq	_swapgeom_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	%r12, %rdi
	callq	_buf_mapped
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	12(%r12), %ecx
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	movq	_sw_dev_mtx@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mtx_lock
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_swapgeom_release
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r12)
	movq	_BIO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 56(%r12)
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_2:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufdone                        ## TAILCALL
LBB0_9:
	movq	32(%r12), %rax
	movq	_unmapped_buf@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PAGE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	24(%r12), %edx
	movl	%edx, 12(%rbx)
	movl	16(%r12), %edx
	movl	%edx, 32(%rbx)
	movq	_BIO_UNMAPPED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 28(%rbx)
LBB0_11:
	movq	%rax, 16(%rbx)
	movl	%ecx, 24(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_g_io_request                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sw_dev_mtx,4,2                 ## @sw_dev_mtx
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_BIO_ERROR,4,2                  ## @BIO_ERROR
	.comm	_BIO_WRITE,8,3                  ## @BIO_WRITE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_swapgeom_done,4,2              ## @swapgeom_done
	.comm	_unmapped_buf,4,2               ## @unmapped_buf
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_BIO_UNMAPPED,4,2               ## @BIO_UNMAPPED
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"swap_pager: cannot allocate bio"

	.no_dead_strip	_swapgeom_strategy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swapgeom_strategy
_swapgeom_strategy:                     ; @swapgeom_strategy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _sw_dev_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _sw_dev_mtx@GOTPAGEOFF]
	bl	_mtx_lock
	ldr	x20, [x22, #8]
	cbz	x20, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_swapgeom_acquire
Lloh2:
	adrp	x0, _sw_dev_mtx@GOTPAGE
Lloh3:
	ldr	x0, [x0, _sw_dev_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _BIO_WRITE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BIO_WRITE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	bl	_g_new_bio
	mov	x21, x0
	cbz	x0, LBB0_7
LBB0_3:
	str	x21, [x19, #48]
	stp	x19, x22, [x21, #48]
	ldr	x8, [x19]
	str	x8, [x21]
	ldr	w8, [x19, #8]
	ldr	w9, [x22]
	sub	w8, w8, w9
Lloh7:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mul	w8, w8, w9
	str	w8, [x21, #8]
	ldr	w8, [x19, #40]
Lloh10:
	adrp	x9, _swapgeom_done@GOTPAGE
Lloh11:
	ldr	x9, [x9, _swapgeom_done@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #36]
	mov	x0, x19
	bl	_buf_mapped
	cbz	w0, LBB0_9
; %bb.4:
	mov	x8, #0
	ldr	w9, [x19, #12]
	b	LBB0_10
LBB0_5:
Lloh13:
	adrp	x0, _sw_dev_mtx@GOTPAGE
Lloh14:
	ldr	x0, [x0, _sw_dev_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh15:
	adrp	x8, _ENXIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _BIO_ERROR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BIO_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ldr	w10, [x19, #56]
	orr	w9, w10, w9
	stp	w9, w8, [x19, #56]
	b	LBB0_8
LBB0_6:
	bl	_g_alloc_bio
	mov	x21, x0
	cbnz	x0, LBB0_3
LBB0_7:
Lloh21:
	adrp	x21, _sw_dev_mtx@GOTPAGE
Lloh22:
	ldr	x21, [x21, _sw_dev_mtx@GOTPAGEOFF]
	mov	x0, x21
	bl	_mtx_lock
	mov	x0, x20
	mov	x1, x22
	bl	_swapgeom_release
	mov	x0, x21
	bl	_mtx_unlock
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	adrp	x9, _BIO_ERROR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BIO_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	ldr	w9, [x9]
	ldr	w10, [x19, #56]
	orr	w9, w10, w9
	stp	w9, w8, [x19, #56]
Lloh29:
	adrp	x0, l_str@PAGE
Lloh30:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bufdone
LBB0_9:
	ldr	x8, [x19, #32]
Lloh31:
	adrp	x9, _unmapped_buf@GOTPAGE
Lloh32:
	ldr	x9, [x9, _unmapped_buf@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _PAGE_MASK@GOTPAGE
Lloh35:
	ldr	x10, [x10, _PAGE_MASK@GOTPAGEOFF]
	ldr	w11, [x19, #24]
Lloh36:
	ldr	w10, [x10]
	and	w10, w10, w11
	str	w10, [x21, #12]
Lloh37:
	adrp	x10, _BIO_UNMAPPED@GOTPAGE
Lloh38:
	ldr	x10, [x10, _BIO_UNMAPPED@GOTPAGEOFF]
	ldr	w11, [x19, #16]
Lloh39:
	ldr	w10, [x10]
	ldr	w12, [x21, #28]
	orr	w10, w12, w10
	stp	w10, w11, [x21, #28]
LBB0_10:
	str	x8, [x21, #16]
	str	w9, [x21, #24]
	mov	x0, x21
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_g_io_request
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_sw_dev_mtx,4,2                 ; @sw_dev_mtx
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_BIO_ERROR,4,2                  ; @BIO_ERROR
	.comm	_BIO_WRITE,8,3                  ; @BIO_WRITE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_swapgeom_done,4,2              ; @swapgeom_done
	.comm	_unmapped_buf,4,2               ; @unmapped_buf
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_BIO_UNMAPPED,4,2               ; @BIO_UNMAPPED
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"swap_pager: cannot allocate bio"

	.no_dead_strip	_swapgeom_strategy
.subsections_via_symbols
