	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___put_page                     ## -- Begin function __put_page
	.p2align	4, 0x90
___put_page:                            ## @__put_page
	.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	%r8d, %ebx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %r13d
	cmpl	$-1, %r13d
	je	LBB0_1
LBB0_3:
	movq	8(%r14), %rax
	movq	_BYTE_ORDER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.5:
	movl	(%r14), %r12d
	cmpl	$4, %r12d
	jl	LBB0_12
## %bb.6:
	shrq	$2, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_M_32_SWAP
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
	jmp	LBB0_12
LBB0_1:
	movq	%r14, %rdi
	callq	_open_temp
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_19
## %bb.2:
	movl	4(%r14), %r13d
	jmp	LBB0_3
LBB0_8:
	movl	(%r15), %edi
	cmpl	$-2, %edi
	jl	LBB0_12
## %bb.9:
	leal	2(%rdi), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_M_16_SWAP
	xorl	%eax, %eax
	testl	%ebx, %ebx
	cmovgl	%ebx, %eax
	jle	LBB0_12
## %bb.10:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r15,%rbx,4), %edi
	callq	_M_16_SWAP
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_11
LBB0_12:
	movq	%r15, %r12
LBB0_13:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.14:
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_BUCKET_TO_PAGE
	jmp	LBB0_16
LBB0_15:
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_OADDR_TO_PAGE
LBB0_16:
	movb	16(%r14), %cl
	shll	%cl, %eax
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_pwrite
	movl	%eax, %ecx
	movl	$-1, %eax
	cmpl	$-1, %ecx
	je	LBB0_19
## %bb.17:
	xorl	%eax, %eax
	cmpl	%ebx, %ecx
	je	LBB0_19
## %bb.18:
	movq	_EFTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BSIZE,4,2                  ## @MAX_BSIZE
	.comm	_BYTE_ORDER,8,3                 ## @BYTE_ORDER
	.comm	_EFTYPE,4,2                     ## @EFTYPE
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___put_page                     ; -- Begin function __put_page
	.p2align	2
___put_page:                            ; @__put_page
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x26, x4
	mov	x22, x3
	mov	x21, x2
	mov	x25, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_BSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_BSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldp	w20, w23, [x0]
	cmn	w23, #1
	b.eq	LBB0_6
LBB0_1:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _BYTE_ORDER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BYTE_ORDER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.2:
	mov	x0, x24
	mov	x1, x25
	mov	x2, x20
	bl	_memcpy
	cbz	w26, LBB0_8
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #4
	b.lt	LBB0_12
; %bb.4:
	mov	x25, #0
	and	x26, x8, #0xfffffffc
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24, x25]
	bl	_M_32_SWAP
	add	x25, x25, #4
	cmp	x26, x25
	b.ne	LBB0_5
	b	LBB0_12
LBB0_6:
	mov	x0, x19
	bl	_open_temp
	cbnz	x0, LBB0_20
; %bb.7:
	ldr	w23, [x19, #4]
	b	LBB0_1
LBB0_8:
	ldr	w0, [x24]
	cmn	w0, #2
	b.lt	LBB0_12
; %bb.9:
	add	w26, w0, #2
	cmp	w26, #0
	csel	w25, w26, wzr, gt
	bl	_M_16_SWAP
	cmp	w26, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x26, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x24, x26, lsl #2
	ldr	w0, [x8, #4]
	bl	_M_16_SWAP
	add	x26, x26, #1
	cmp	x25, x26
	b.ne	LBB0_11
LBB0_12:
	mov	x25, x24
LBB0_13:
	mov	x0, x21
	cbz	w22, LBB0_15
; %bb.14:
	bl	_BUCKET_TO_PAGE
	b	LBB0_16
LBB0_15:
	bl	_OADDR_TO_PAGE
LBB0_16:
	ldr	w8, [x19, #16]
	lsl	w3, w0, w8
	mov	x0, x23
	mov	x1, x25
	mov	x2, x20
	bl	_pwrite
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.17:
	cmp	w0, w20
	b.ne	LBB0_19
; %bb.18:
	mov	w0, #0
	b	LBB0_21
LBB0_19:
Lloh11:
	adrp	x8, _EFTYPE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFTYPE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _errno@GOTPAGE
Lloh15:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
LBB0_20:
	mov	w0, #-1
LBB0_21:
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BSIZE,4,2                  ; @MAX_BSIZE
	.comm	_BYTE_ORDER,8,3                 ; @BYTE_ORDER
	.comm	_EFTYPE,4,2                     ; @EFTYPE
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
