	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mode_list                      ## -- Begin function mode_list
	.p2align	4, 0x90
_mode_list:                             ## @mode_list
	.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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	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), %r12d
	leaq	(,%r12,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_DEFAULT_SCSI_MODE_DB@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_load_format
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_warn
LBB0_6:
	movl	24(%rbp), %eax
	movl	16(%rbp), %r10d
	movq	_SMS_ALL_PAGES_PAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movq	_SMS_SUBPAGE_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_8:
	shll	$2, %r12d
	leaq	-52(%rbp), %rsi
	movq	%r13, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	pushq	%r12
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	callq	_mode_sense
	addq	$48, %rsp
	cmpl	$6, -52(%rbp)
	jne	LBB0_10
## %bb.9:
	movl	(%rbx), %r14d
	movl	4(%rbx), %r13d
	jmp	LBB0_11
LBB0_10:
	movl	4(%rbx), %edi
	callq	_scsi_2btoul
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_scsi_2btoul
	movl	%eax, %r13d
LBB0_11:
	addl	$8, %r13d
	cmpl	%r14d, %r13d
	jl	LBB0_13
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_printf
	cmpl	%r14d, %r13d
	jge	LBB0_22
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %rbx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rbx,4), %eax
	movq	_SMS_PAGE_CODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	andl	%eax, %r12d
	movq	_SMPH_SPF@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	4(%rcx,%rbx,4), %r15d
	movl	8(%rcx,%rbx,4), %edi
	callq	_scsi_2btoul
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax), %r13d
	addl	$12, %r13d
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_nameentry_lookup
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.3(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rax), %rcx
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_printf
	cmpl	%r14d, %r13d
	jl	LBB0_13
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	8(%rcx,%rbx,4), %eax
	leal	(%rbx,%rax), %r13d
	addl	$16, %r13d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_nameentry_lookup
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.3(%rip), %rdx
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rax), %rdx
	jmp	LBB0_18
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DATA_SIZE,4,2              ## @MAX_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCSI_MODES"

	.comm	_DEFAULT_SCSI_MODE_DB,8,3       ## @DEFAULT_SCSI_MODE_DB
	.comm	_verbose,8,3                    ## @verbose
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"cannot open modepage database \"%s\""

	.comm	_SMS_ALL_PAGES_PAGE,4,2         ## @SMS_ALL_PAGES_PAGE
	.comm	_SMS_SUBPAGE_ALL,4,2            ## @SMS_SUBPAGE_ALL
	.comm	_SMPH_SPF,4,2                   ## @SMPH_SPF
	.comm	_SMS_PAGE_CODE,4,2              ## @SMS_PAGE_CODE
L_.str.2:                               ## @.str.2
	.asciz	"0x%02x\t%s\n"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"0x%02x,0x%02x\t%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mode_list                      ; -- Begin function mode_list
	.p2align	2
_mode_list:                             ; @mode_list
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x20, x7
	mov	x21, x6
	mov	x19, x5
	mov	x25, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	w1, [x29, #-92]
Lloh3:
	adrp	x8, _MAX_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_DATA_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w28, [x8]
	lsl	x8, x28, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x27, x9, x8
	mov	sp, x27
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh10:
	adrp	x8, _DEFAULT_SCSI_MODE_DB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEFAULT_SCSI_MODE_DB@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x26, x8, x0, eq
	mov	x0, x26
	mov	w1, #0
	mov	w2, #0
	bl	_load_format
Lloh13:
	adrp	x8, _verbose@GOTPAGE
Lloh14:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_3
; %bb.1:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _ENOENT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x26
	bl	_warn
LBB0_3:
Lloh24:
	adrp	x8, _SMS_ALL_PAGES_PAGE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SMS_ALL_PAGES_PAGE@GOTPAGEOFF]
Lloh26:
	ldr	w5, [x8]
Lloh27:
	adrp	x8, _SMS_SUBPAGE_ALL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SMS_SUBPAGE_ALL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w25, #0
	csel	w6, wzr, w8, eq
	lsl	w8, w28, #2
	sub	sp, sp, #32
	str	w8, [sp, #16]
	str	x27, [sp, #8]
	sub	x1, x29, #92
	stp	w21, w20, [sp]
	mov	x0, x24
	mov	x2, x23
	mov	w3, #0
	mov	x4, x22
	mov	x7, x19
	bl	_mode_sense
	add	sp, sp, #32
	ldur	w8, [x29, #-92]
	cmp	w8, #6
	b.ne	LBB0_5
; %bb.4:
	ldp	w19, w0, [x27]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x27, #4]
	bl	_scsi_2btoul
	mov	x19, x0
	ldr	w0, [x27]
	bl	_scsi_2btoul
LBB0_6:
	add	w24, w0, #8
	cmp	w24, w19
	b.ge	LBB0_20
; %bb.7:
Lloh30:
	adrp	x25, _SMPH_SPF@GOTPAGE
Lloh31:
	ldr	x25, [x25, _SMPH_SPF@GOTPAGEOFF]
Lloh32:
	adrp	x26, _SMS_PAGE_CODE@GOTPAGE
Lloh33:
	ldr	x26, [x26, _SMS_PAGE_CODE@GOTPAGEOFF]
Lloh34:
	adrp	x28, l_.str.3@PAGE
Lloh35:
	add	x28, x28, l_.str.3@PAGEOFF
Lloh36:
	adrp	x20, l_.str.2@PAGE
Lloh37:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh38:
	adrp	x21, l_.str.4@PAGE
Lloh39:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x0]
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	str	x8, [sp, #-16]!
	mov	x0, x20
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x1, x22
	bl	_printf
	add	sp, sp, #16
	cmp	w24, w19
	b.ge	LBB0_20
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x27, w24, sxtw #2
	ldr	w9, [x8]
	ldr	w10, [x25]
	ldr	w11, [x26]
	and	w22, w11, w9
	tst	w10, w9
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldp	w23, w0, [x8, #4]
	bl	_scsi_2btoul
	add	w8, w24, w0
	add	w24, w8, #12
	mov	x0, x22
	mov	x1, x23
	bl	_nameentry_lookup
	cbz	w23, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	x0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x0]
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x8, #8]
	add	w8, w24, w8
	add	w24, w8, #16
	mov	x0, x22
	mov	w1, #0
	bl	_nameentry_lookup
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	cbnz	x0, LBB0_8
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x8, x28
	b	LBB0_9
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x8, x28
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	stp	x23, x8, [sp, #-16]!
	mov	x0, x21
	b	LBB0_10
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DATA_SIZE,4,2              ; @MAX_DATA_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCSI_MODES"

	.comm	_DEFAULT_SCSI_MODE_DB,8,3       ; @DEFAULT_SCSI_MODE_DB
	.comm	_verbose,8,3                    ; @verbose
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"cannot open modepage database \"%s\""

	.comm	_SMS_ALL_PAGES_PAGE,4,2         ; @SMS_ALL_PAGES_PAGE
	.comm	_SMS_SUBPAGE_ALL,4,2            ; @SMS_SUBPAGE_ALL
	.comm	_SMPH_SPF,4,2                   ; @SMPH_SPF
	.comm	_SMS_PAGE_CODE,4,2              ; @SMS_PAGE_CODE
l_.str.2:                               ; @.str.2
	.asciz	"0x%02x\t%s\n"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"0x%02x,0x%02x\t%s\n"

.subsections_via_symbols
