	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_divide                 ## -- Begin function acpi_ut_divide
	.p2align	4, 0x90
_acpi_ut_divide:                        ## @acpi_ut_divide
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_ut_divide@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	testq	%rbx, %rbx
	je	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ACPI_SHIFT_RIGHT_64
	movq	%r12, %rdi
	callq	_ACPI_SHIFT_RIGHT_64
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	_AE_AML_DIVIDE_BY_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	xorl	%edi, %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_ACPI_DIV_64_BY_32
	callq	_ACPI_DIV_64_BY_32
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	$0, (%r15)
LBB0_3:
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	$0, (%r14)
LBB0_5:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ut_divide,4,2                  ## @ut_divide
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Divide by zero"

	.comm	_AE_AML_DIVIDE_BY_ZERO,4,2      ## @AE_AML_DIVIDE_BY_ZERO
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ut_divide                 ; -- Begin function acpi_ut_divide
	.p2align	2
_acpi_ut_divide:                        ; @acpi_ut_divide
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ut_divide@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ut_divide@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	cbz	x22, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ACPI_SHIFT_RIGHT_64
	mov	x0, x21
	bl	_ACPI_SHIFT_RIGHT_64
	b	LBB0_1
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
Lloh5:
	adrp	x8, _AE_AML_DIVIDE_BY_ZERO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_AML_DIVIDE_BY_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
	mov	x0, #0
	mov	x1, x21
	mov	x3, #0
	bl	_ACPI_DIV_64_BY_32
	bl	_ACPI_DIV_64_BY_32
	cbz	x20, LBB0_4
; %bb.3:
	str	xzr, [x20]
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	str	xzr, [x19]
LBB0_6:
Lloh8:
	adrp	x8, _AE_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ut_divide,4,2                  ; @ut_divide
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Divide by zero"

	.comm	_AE_AML_DIVIDE_BY_ZERO,4,2      ; @AE_AML_DIVIDE_BY_ZERO
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
