	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function steam_get_serial
_steam_get_serial:                      ## @steam_get_serial
	.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
	movq	%rdi, %r14
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STEAM_CMD_GET_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movabsq	$4294967317, %rax               ## imm = 0x100000015
	movq	%rax, -56(%rbp)
	movq	_STEAM_SERIAL_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	addl	$4, %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	-60(%rbp), %rsi
	movq	%r14, %rdi
	movl	$12, %edx
	callq	_steam_send_report
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	shll	$2, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_steam_recv_report
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	cmpl	$174, (%r15)
	jne	LBB0_5
## %bb.3:
	cmpl	$21, 4(%r15)
	jne	LBB0_5
## %bb.4:
	cmpl	$1, 8(%r15)
	jne	LBB0_5
## %bb.6:
	movslq	(%r13), %rax
	movl	$0, 12(%r15,%rax,4)
	movl	(%r14), %edi
	addq	$12, %r15
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STEAM_CMD_GET_SERIAL,4,2       ## @STEAM_CMD_GET_SERIAL
	.comm	_STEAM_SERIAL_LEN,4,2           ## @STEAM_SERIAL_LEN
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_steam_get_serial
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function steam_get_serial
lCPI0_0:
	.long	21                              ; 0x15
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_steam_get_serial:                      ; @steam_get_serial
	.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
	sub	sp, sp, #32
	mov	x19, x0
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _STEAM_CMD_GET_SERIAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STEAM_CMD_GET_SERIAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stur	w8, [x29, #-68]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x29, #-64]
Lloh8:
	adrp	x22, _STEAM_SERIAL_LEN@GOTPAGE
Lloh9:
	ldr	x22, [x22, _STEAM_SERIAL_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w23, w8, #4
	lsl	x8, x23, #2
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	sub	x1, x29, #68
	mov	w2, #12
	bl	_steam_send_report
	tbnz	w0, #31, LBB0_7
; %bb.1:
	lsl	w2, w23, #2
	mov	x0, x19
	mov	x1, x20
	bl	_steam_recv_report
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #174
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x20, #4]
	cmp	w8, #21
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:
	ldrsw	x8, [x22]
	add	x8, x20, x8, lsl #2
	str	wzr, [x8, #12]
	ldr	w0, [x19]
	add	x1, x20, #12
	mov	w2, #4
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	mov	sp, x21
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #48
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STEAM_CMD_GET_SERIAL,4,2       ; @STEAM_CMD_GET_SERIAL
	.comm	_STEAM_SERIAL_LEN,4,2           ; @STEAM_SERIAL_LEN
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_steam_get_serial
.subsections_via_symbols
