	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_steal_exc_port            ## -- Begin function proc_steal_exc_port
	.p2align	4, 0x90
_proc_steal_exc_port:                   ## @proc_steal_exc_port
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	__proc_get_exc_port
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_proc_debug
	cmpq	%r14, %r15
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_proc_set_exception_port
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_6:
	cmpq	(%rbx), %r15
	jne	LBB0_8
## %bb.7:
	movb	$1, %r13b
	xorl	%r12d, %r12d
LBB0_4:
	xorl	%eax, %eax
	callq	_mach_task_self
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_mach_port_deallocate
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_proc_debug
	testb	%r13b, %r13b
	jne	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_proc_string
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_safe_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warning                        ## TAILCALL
LBB0_8:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_mach_task_self
	movq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_mach_port_deallocate
LBB0_10:
	movq	%r15, 8(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_proc_debug
LBB0_11:
	movq	%r14, (%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inserting exception port: %d"

L_.str.1:                               ## @.str.1
	.asciz	"saved exception port: %d"

L_.str.2:                               ## @.str.2
	.asciz	"Error setting exception port for %s: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_steal_exc_port            ; -- Begin function proc_steal_exc_port
	.p2align	2
_proc_steal_exc_port:                   ; @proc_steal_exc_port
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	__proc_get_exc_port
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_proc_debug
	cmp	x21, x20
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_proc_set_exception_port
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
	mov	w23, #0
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19]
	cmp	x21, x8
	b.ne	LBB0_8
; %bb.5:
	mov	x22, #0
	mov	w23, #1
LBB0_6:
	bl	_mach_task_self
	mov	x1, x21
	bl	_mach_port_deallocate
	ldr	x2, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_proc_debug
	cbnz	w23, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_proc_string
	mov	x19, x0
	mov	x0, x22
	bl	_safe_strerror
	mov	x2, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_warning
LBB0_8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
	bl	_mach_task_self
	ldr	x1, [x19, #8]
	bl	_mach_port_deallocate
LBB0_10:
	str	x21, [x19, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_proc_debug
LBB0_11:
	str	x20, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inserting exception port: %d"

l_.str.1:                               ; @.str.1
	.asciz	"saved exception port: %d"

l_.str.2:                               ; @.str.2
	.asciz	"Error setting exception port for %s: %s"

.subsections_via_symbols
