	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rpc_raise_fd                 ## -- Begin function __rpc_raise_fd
	.p2align	4, 0x90
___rpc_raise_fd:                        ## @__rpc_raise_fd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	___rpc_minfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edi, %edx
	jle	LBB0_7
## %bb.1:
	movq	_F_DUPFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	__fcntl
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.2:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	__fsync
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	%ebx, %edi
	callq	__close
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_syslog
LBB0_6:
	movl	%r14d, %ebx
	jmp	LBB0_7
LBB0_3:
	movl	%r14d, %edi
	callq	__close
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___rpc_minfd,4,2                ## @__rpc_minfd
	.comm	_F_DUPFD,4,2                    ## @F_DUPFD
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not close() fd %d; mem & fd leak"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rpc_raise_fd                 ; -- Begin function __rpc_raise_fd
	.p2align	2
___rpc_raise_fd:                        ; @__rpc_raise_fd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___rpc_minfd@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___rpc_minfd@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	cmp	w2, w0
	b.le	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _F_DUPFD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _F_DUPFD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	__fcntl
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	mov	x20, x0
	bl	__fsync
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	__close
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_syslog
LBB0_5:
	mov	x19, x20
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	__close
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	___rpc_minfd,4,2                ; @__rpc_minfd
	.comm	_F_DUPFD,4,2                    ; @F_DUPFD
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not close() fd %d; mem & fd leak"

.subsections_via_symbols
