	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modepage_dump
_modepage_dump:                         ## @modepage_dump
	.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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, -52(%rbp)
	movq	_MAX_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	shlq	$2, %r14
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	-52(%rbp), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r14
	pushq	%r15
	movl	32(%rbp), %eax
	pushq	%rax
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_mode_sense
	addq	$48, %rsp
	cmpl	$6, -52(%rbp)
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_find_mode_page_6
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_find_mode_page_10
LBB0_3:
	movq	%rax, %r12
	movl	(%rax), %edi
	movq	_SMPH_SPF@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_4
## %bb.5:
	addq	$4, %r12
	callq	_scsi_2btoul
	movq	%rax, %rdi
	jmp	LBB0_6
LBB0_4:
	movq	8(%r12), %rdi
	addq	$16, %r12
LBB0_6:
	movq	%r12, %rax
	subq	%r15, %rax
	shrq	$2, %rax
	subl	%eax, %r14d
	movl	%r14d, %esi
	callq	_MIN
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %r15
	negq	%r15
	movl	$1, %ebx
	movl	$10, %r13d
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r12,%rbx,4), %esi
	testb	$7, %bl
	movl	$32, %edx
	cmovel	%r13d, %edx
	movq	%r14, %rdi
	callq	_printf
	leaq	(%r15,%rbx), %rax
	incq	%rax
	incq	%rbx
	cmpq	$1, %rax
	jne	LBB0_8
LBB0_9:
	movl	$10, %edi
	callq	_putchar
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DATA_SIZE,4,2              ## @MAX_DATA_SIZE
	.comm	_SMPH_SPF,4,2                   ## @SMPH_SPF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x%c"

	.no_dead_strip	_modepage_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modepage_dump
_modepage_dump:                         ; @modepage_dump
	.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, #16
	mov	x8, x6
	mov	x6, x5
	mov	x5, x4
	mov	x4, x3
	ldr	w12, [x29, #16]
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-56]
	stur	w1, [x29, #-60]
Lloh3:
	adrp	x9, _MAX_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_DATA_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	x19, x9, #2
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x19, #15
	and	x10, x10, #0x7fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	sub	sp, sp, #32
	str	w19, [sp, #16]
	str	x20, [sp, #8]
	sub	x1, x29, #60
	stp	w7, w12, [sp]
	mov	w3, #0
	mov	x7, x8
	bl	_mode_sense
	add	sp, sp, #32
	ldur	w8, [x29, #-60]
	mov	x0, x20
	cmp	w8, #6
	b.ne	LBB0_2
; %bb.1:
	bl	_find_mode_page_6
	b	LBB0_3
LBB0_2:
	bl	_find_mode_page_10
LBB0_3:
	ldr	w8, [x0]
Lloh8:
	adrp	x9, _SMPH_SPF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SMPH_SPF@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	add	x21, x0, #4
	mov	x0, x8
	bl	_scsi_2btoul
	b	LBB0_6
LBB0_5:
	add	x21, x0, #16
	ldr	x0, [x0, #8]
LBB0_6:
	sub	x8, x21, x20
	lsr	x8, x8, #2
	sub	w1, w19, w8
	bl	_MIN
	cbz	x0, LBB0_9
; %bb.7:
	mov	x19, x0
	mov	x22, #0
	mov	w23, #32
	mov	w24, #10
Lloh11:
	adrp	x20, l_.str@PAGE
Lloh12:
	add	x20, x20, l_.str@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, x22, lsl #2]
	add	x22, x22, #1
	tst	x22, #0x7
	csel	w2, w24, w23, eq
	mov	x0, x20
	bl	_printf
	cmp	x19, x22
	b.ne	LBB0_8
LBB0_9:
	mov	w0, #10
	bl	_putchar
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DATA_SIZE,4,2              ; @MAX_DATA_SIZE
	.comm	_SMPH_SPF,4,2                   ; @SMPH_SPF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x%c"

	.no_dead_strip	_modepage_dump
.subsections_via_symbols
