	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_send_req
_handle_send_req:                       ## @handle_send_req
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	(%rsi), %edx
	cmpl	$5, %edx
	jb	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	32(%rsi), %rsi
	leaq	-48(%rbp), %rdi
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	28(%rbx), %eax
	movl	%eax, -60(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -64(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -80(%rbp)
	movq	_IPMI_MAX_MSG_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdi
	callq	_ipmi_validate_addr
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.10:
	movl	8(%rbx), %edx
	movq	_IPMI_MAX_MSG_LENGTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jle	LBB0_13
## %bb.11:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_15:
	movl	$0, -80(%rbp)
	jmp	LBB0_16
LBB0_13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_16:
	movl	4(%rbx), %edx
	leaq	-48(%rbp), %rsi
	leaq	-80(%rbp), %rcx
	movl	%r12d, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r15
	pushq	%r14
	callq	_ipmi_request_settime
	addq	$16, %rsp
	movl	%eax, %r13d
	movq	-72(%rbp), %rdi
LBB0_17:
	callq	_kfree
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_IPMI_MAX_MSG_LENGTH,4,2        ## @IPMI_MAX_MSG_LENGTH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_handle_send_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_send_req
_handle_send_req:                       ; @handle_send_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	ldr	w2, [x1]
	cmp	w2, #5
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x19, x3
	mov	x22, x1
	mov	x21, x0
	ldr	x1, [x1, #32]
	add	x0, sp, #24
	bl	_copy_from_user
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_5:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	ldr	d0, [x22, #24]
	str	d0, [sp, #16]
	ldr	w8, [x22, #8]
	str	w8, [sp]
Lloh4:
	adrp	x25, _IPMI_MAX_MSG_LENGTH@GOTPAGE
Lloh5:
	ldr	x25, [x25, _IPMI_MAX_MSG_LENGTH@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kmalloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_9
; %bb.7:
	mov	x23, x0
	ldr	w1, [x22]
	add	x0, sp, #24
	bl	_ipmi_validate_addr
	cbz	w0, LBB0_10
; %bb.8:
	mov	x24, x0
	b	LBB0_18
LBB0_9:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	ldr	x1, [x22, #16]
	cbz	x1, LBB0_13
; %bb.11:
	ldr	w2, [x22, #8]
	ldr	w8, [x25]
	cmp	w2, w8
	b.le	LBB0_14
; %bb.12:
Lloh11:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
	str	wzr, [sp]
	b	LBB0_17
LBB0_14:
	mov	x0, x23
	bl	_copy_from_user
	cbz	x0, LBB0_17
; %bb.15:
Lloh13:
	adrp	x8, _EFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_18
LBB0_17:
	ldr	w2, [x22, #4]
	add	x1, sp, #24
	mov	x3, sp
	mov	x0, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, x20
	mov	x7, x19
	bl	_ipmi_request_settime
	mov	x24, x0
	ldr	x23, [sp, #8]
LBB0_18:
	mov	x0, x23
	bl	_kfree
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_IPMI_MAX_MSG_LENGTH,4,2        ; @IPMI_MAX_MSG_LENGTH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_handle_send_req
.subsections_via_symbols
