	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gprobe_getdeviceid
_gprobe_getdeviceid:                    ## @gprobe_getdeviceid
	.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	%esi, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_r_buf_new
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_r_buf_new
	movq	%rax, %r14
	movq	_GPROBE_GET_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	testq	%r14, %r14
	je	LBB0_8
## %bb.3:
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_r_buf_append_bytes
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_r_buf_append_bytes
	movq	%r15, %rdi
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*8(%rbx)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movl	-28(%rbp), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	*(%rbx)
	testq	%rax, %rax
	je	LBB0_5
LBB0_8:
	movq	%r15, %rdi
	callq	_r_buf_free
	movq	%r14, %rdi
	callq	_r_buf_free
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_r_buf_to_string
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	movq	%rbx, %rdi
	callq	_free
LBB0_7:
	movq	%r15, %rdi
	callq	_r_buf_free
	movq	%r14, %rdi
	callq	_r_buf_free
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GPROBE_GET_DEVICE_ID,4,2       ## @GPROBE_GET_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.no_dead_strip	_gprobe_getdeviceid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gprobe_getdeviceid
_gprobe_getdeviceid:                    ; @gprobe_getdeviceid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	str	w1, [sp, #12]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	bl	_r_buf_new
	mov	x20, x0
	bl	_r_buf_new
	mov	x19, x0
Lloh0:
	adrp	x8, _GPROBE_GET_DEVICE_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPROBE_GET_DEVICE_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cbz	x20, LBB0_5
; %bb.2:
	cbz	x19, LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #1
	bl	_r_buf_append_bytes
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #1
	bl	_r_buf_append_bytes
	ldr	x8, [x21, #16]
	mov	x0, x20
	blr	x8
	ldr	x8, [x21, #8]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x21]
	ldr	w1, [sp, #8]
	mov	x0, x21
	mov	x2, x19
	blr	x8
	cbz	x0, LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_r_buf_free
	mov	x0, x19
	bl	_r_buf_free
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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
	add	sp, sp, #64
	ret
LBB0_8:
	mov	x0, x19
	bl	_r_buf_to_string
	cbz	x0, LBB0_10
; %bb.9:
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_printf
	mov	x0, x21
	bl	_free
LBB0_10:
	mov	x0, x20
	bl	_r_buf_free
	mov	x0, x19
	bl	_r_buf_free
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GPROBE_GET_DEVICE_ID,4,2       ; @GPROBE_GET_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.no_dead_strip	_gprobe_getdeviceid
.subsections_via_symbols
