	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_lightbar_cmd_msg
_alloc_lightbar_cmd_msg:                ## @alloc_lightbar_cmd_msg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$4, %edi
	movl	$4, %esi
	callq	_max
                                        ## kill: def $eax killed $eax def $rax
	leal	24(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	$0, 16(%rax)
	movq	_EC_CMD_LIGHTBAR_CMD@GOTPCREL(%rip), %rcx
	movq	(%rbx), %rdx
	addq	(%rcx), %rdx
	movq	%rdx, 8(%rax)
	movabsq	$17179869188, %rcx              ## imm = 0x400000004
	movq	%rcx, (%rax)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EC_CMD_LIGHTBAR_CMD,8,3        ## @EC_CMD_LIGHTBAR_CMD
	.no_dead_strip	_alloc_lightbar_cmd_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_lightbar_cmd_msg
_alloc_lightbar_cmd_msg:                ; @alloc_lightbar_cmd_msg
	.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
	mov	w0, #4
	mov	w1, #4
	bl	_max
	add	w0, w0, #24
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EC_CMD_LIGHTBAR_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_CMD_LIGHTBAR_CMD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x8, x9, x8
	stp	x8, xzr, [x0, #8]
	movi.2s	v0, #4
	str	d0, [x0]
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EC_CMD_LIGHTBAR_CMD,8,3        ; @EC_CMD_LIGHTBAR_CMD
	.no_dead_strip	_alloc_lightbar_cmd_msg
.subsections_via_symbols
