	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_logpage                   ## -- Begin function read_logpage
	.p2align	4, 0x90
_read_logpage:                          ## @read_logpage
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %eax
	movq	16(%rbp), %r13
                                        ## kill: def $eax killed $eax def $rax
	sarl	$2, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	-1(%rax), %r12d
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	_NVME_OPC_GET_LOG_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_htole32
	movq	%rax, -80(%rbp)
	movl	%r12d, %eax
	shll	$16, %eax
	shll	$15, %r14d
	shll	$8, %r15d
	orl	%ebx, %r15d
	orl	%r14d, %r15d
	orl	%eax, %r15d
	movl	%r15d, %edi
	callq	_htole32
	movq	%rax, -88(%rbp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	shll	$16, %eax
	sarl	$16, %r12d
	orl	%eax, %r12d
	movl	24(%rbp), %r14d
	movl	%r12d, %edi
	callq	_htole32
	movq	%rax, -96(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -120(%rbp)
	movq	$0, -104(%rbp)
	movq	%r13, -128(%rbp)
	movl	%r14d, -144(%rbp)
	movl	$1, -140(%rbp)
	movq	_NVME_PASSTHROUGH_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	leaq	-144(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	addl	$-128, %ebx
	cmpl	$7, %ebx
	ja	LBB0_14
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	movq	%r13, %rdi
	callq	_nvme_sanitize_status_page_swapbytes
	jmp	LBB0_14
LBB0_4:
	cmpl	$4, %r14d
	jl	LBB0_14
## %bb.5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, %eax
	movl	$1, %ebx
	cmovgel	%eax, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_nvme_error_information_entry_swapbytes
	addl	$4, %r13d
	decl	%ebx
	jne	LBB0_6
	jmp	LBB0_14
LBB0_11:
	movq	%r13, %rdi
	callq	_nvme_res_notification_page_swapbytes
	jmp	LBB0_14
LBB0_7:
	movq	%r13, %rdi
	callq	_nvme_health_information_page_swapbytes
	jmp	LBB0_14
LBB0_8:
	movq	%r13, %rdi
	callq	_nvme_firmware_page_swapbytes
	jmp	LBB0_14
LBB0_10:
	movq	%r13, %rdi
	callq	_nvme_command_effects_page_swapbytes
	jmp	LBB0_14
LBB0_9:
	movq	%r13, %rdi
	callq	_nvme_ns_list_swapbytes
	jmp	LBB0_14
LBB0_13:
	movq	%r13, %rdi
	callq	_intel_log_temp_stats_swapbytes
LBB0_14:
	leaq	-136(%rbp), %rdi
	callq	_nvme_completion_is_error
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_16:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_NVME_OPC_GET_LOG_PAGE,4,2      ## @NVME_OPC_GET_LOG_PAGE
	.comm	_NVME_PASSTHROUGH_CMD,4,2       ## @NVME_PASSTHROUGH_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get log page request failed"

L_.str.1:                               ## @.str.1
	.asciz	"get log page request returned error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_logpage                   ; -- Begin function read_logpage
	.p2align	2
_read_logpage:                          ; @read_logpage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x7
	mov	x19, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x21, x1
	mov	x26, x0
	asr	w27, w7, #2
	sub	w28, w27, #1
	mov	x0, sp
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh0:
	adrp	x8, _NVME_OPC_GET_LOG_PAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_OPC_GET_LOG_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #72]
	mov	x0, x25
	bl	_htole32
	str	x0, [sp, #64]
	orr	w8, w21, w24, lsl #8
	orr	w8, w8, w22, lsl #15
	orr	w0, w8, w28, lsl #16
	bl	_htole32
	str	x0, [sp, #56]
	asr	w8, w28, #16
	orr	w0, w8, w23, lsl #16
	bl	_htole32
	stp	xzr, x0, [sp, #40]
	stp	xzr, xzr, [sp, #24]
	str	x19, [sp, #16]
	mov	w8, #1
	stp	w20, w8, [sp]
Lloh3:
	adrp	x8, _NVME_PASSTHROUGH_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVME_PASSTHROUGH_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x26
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	sub	w8, w21, #128
	cmp	w8, #7
	b.hi	LBB0_14
; %bb.3:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	x0, x19
	bl	_nvme_sanitize_status_page_swapbytes
	b	LBB0_14
LBB0_5:
	cmp	w20, #4
	b.lt	LBB0_14
; %bb.6:
	cmp	w27, #1
	csinc	w20, w27, wzr, gt
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_nvme_error_information_entry_swapbytes
	add	w19, w19, #4
	subs	w20, w20, #1
	b.ne	LBB0_7
	b	LBB0_14
LBB0_8:
	mov	x0, x19
	bl	_nvme_res_notification_page_swapbytes
	b	LBB0_14
LBB0_9:
	mov	x0, x19
	bl	_nvme_health_information_page_swapbytes
	b	LBB0_14
LBB0_10:
	mov	x0, x19
	bl	_nvme_firmware_page_swapbytes
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_nvme_command_effects_page_swapbytes
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_nvme_ns_list_swapbytes
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_intel_log_temp_stats_swapbytes
LBB0_14:
	mov	x8, sp
	add	x0, x8, #8
	bl	_nvme_completion_is_error
	cbz	x0, LBB0_16
; %bb.15:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_16:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
                                        ; -- End function
	.comm	_NVME_OPC_GET_LOG_PAGE,4,2      ; @NVME_OPC_GET_LOG_PAGE
	.comm	_NVME_PASSTHROUGH_CMD,4,2       ; @NVME_PASSTHROUGH_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get log page request failed"

l_.str.1:                               ; @.str.1
	.asciz	"get log page request returned error"

.subsections_via_symbols
