	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adjust_oom_score               ## -- Begin function adjust_oom_score
	.p2align	4, 0x90
_adjust_oom_score:                      ## @adjust_oom_score
	.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	%edi, %ebx
	xorl	%eax, %eax
	callq	_getpid
	leaq	_adjust_oom_score.path(%rip), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_sprintf
	xorl	%edi, %edi
	cmpl	$64, %eax
	setl	%dil
	callq	_assert
	leaq	_adjust_oom_score.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	$16, %eax
	setl	%dil
	callq	_assert
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	_adjust_oom_score.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_write
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_close
	xorl	%eax, %eax
	cmpl	%r15d, %r14d
	sete	%al
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	leaq	_adjust_oom_score.path(%rip), %rsi
	callq	_kprintf
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	leaq	_adjust_oom_score.path(%rip), %rsi
	callq	_kprintf
	movl	%ebx, %edi
	callq	_close
LBB0_5:
	movl	$-1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_adjust_oom_score.path,64,4 ## @adjust_oom_score.path
.zerofill __DATA,__bss,_adjust_oom_score.str,16,4 ## @adjust_oom_score.str
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/proc/%d/oom_score_adj"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
L_.str.2:                               ## @.str.2
	.asciz	"cannot write to %s : %m\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adjust_oom_score               ; -- Begin function adjust_oom_score
	.p2align	2
_adjust_oom_score:                      ; @adjust_oom_score
	.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	x19, x0
	bl	_getpid
	mov	x2, x0
Lloh0:
	adrp	x20, _adjust_oom_score.path@PAGE
Lloh1:
	add	x20, x20, _adjust_oom_score.path@PAGEOFF
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	cmp	w0, #64
	cset	w0, lt
	bl	_assert
Lloh4:
	adrp	x0, _adjust_oom_score.str@PAGE
Lloh5:
	add	x0, x0, _adjust_oom_score.str@PAGEOFF
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_sprintf
	mov	x19, x0
	cmp	w0, #16
	cset	w0, lt
	bl	_assert
Lloh8:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_open
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh14:
	adrp	x1, _adjust_oom_score.str@PAGE
Lloh15:
	add	x1, x1, _adjust_oom_score.str@PAGEOFF
	mov	x2, x19
	bl	_write
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	bl	_close
	cmp	w21, w19
	cset	w0, eq
	b	LBB0_6
LBB0_3:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh18:
	adrp	x1, _adjust_oom_score.path@PAGE
Lloh19:
	add	x1, x1, _adjust_oom_score.path@PAGEOFF
	bl	_kprintf
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh22:
	adrp	x1, _adjust_oom_score.path@PAGE
Lloh23:
	add	x1, x1, _adjust_oom_score.path@PAGEOFF
	bl	_kprintf
	mov	x0, x20
	bl	_close
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_adjust_oom_score.path,64,0 ; @adjust_oom_score.path
.zerofill __DATA,__bss,_adjust_oom_score.str,16,0 ; @adjust_oom_score.str
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/proc/%d/oom_score_adj"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
l_.str.2:                               ; @.str.2
	.asciz	"cannot write to %s : %m\n"

.subsections_via_symbols
