	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_print_cts
_get_print_cts:                         ## @get_print_cts
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_cam_getccb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_CCB_CLEAR_ALL_EXCEPT_HDR
	movq	_XPT_GET_TRAN_SETTINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.4:
	movq	_CTS_TYPE_CURRENT_SETTINGS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	movl	$1, %r12d
	jmp	LBB0_15
LBB0_3:
	movq	_CTS_TYPE_USER_SETTINGS@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cam_send_ccb
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	_CAM_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.10:
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cts_print
LBB0_12:
	xorl	%r12d, %r12d
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	movl	$1, %r12d
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_warnx
	movq	_arglist@GOTPCREL(%rip), %rax
	movq	_CAM_ARG_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %r12d
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.9:
	movq	_CAM_ESF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CAM_EPF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cam_error_print
LBB0_14:
	movq	%rbx, %rdi
	callq	_cam_freeccb
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_print_cts: error allocating ccb"

	.comm	_XPT_GET_TRAN_SETTINGS,4,2      ## @XPT_GET_TRAN_SETTINGS
	.comm	_CTS_TYPE_CURRENT_SETTINGS,4,2  ## @CTS_TYPE_CURRENT_SETTINGS
	.comm	_CTS_TYPE_USER_SETTINGS,4,2     ## @CTS_TYPE_USER_SETTINGS
L_.str.1:                               ## @.str.1
	.asciz	"error sending XPT_GET_TRAN_SETTINGS CCB"

	.comm	_CAM_STATUS_MASK,4,2            ## @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ## @CAM_REQ_CMP
L_.str.2:                               ## @.str.2
	.asciz	"XPT_GET_TRANS_SETTINGS CCB failed"

	.comm	_arglist,4,2                    ## @arglist
	.comm	_CAM_ARG_VERBOSE,4,2            ## @CAM_ARG_VERBOSE
	.comm	_CAM_ESF_ALL,4,2                ## @CAM_ESF_ALL
	.comm	_CAM_EPF_ALL,4,2                ## @CAM_EPF_ALL
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_get_print_cts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_print_cts
_get_print_cts:                         ; @get_print_cts
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_cam_getccb
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_CCB_CLEAR_ALL_EXCEPT_HDR
Lloh0:
	adrp	x8, _XPT_GET_TRAN_SETTINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XPT_GET_TRAN_SETTINGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh3:
	adrp	x8, _CTS_TYPE_CURRENT_SETTINGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTS_TYPE_CURRENT_SETTINGS@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CTS_TYPE_USER_SETTINGS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CTS_TYPE_USER_SETTINGS@GOTPAGEOFF]
	cmp	w23, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_cam_send_ccb
	tbnz	x0, #63, LBB0_8
; %bb.2:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _CAM_STATUS_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CAM_STATUS_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh10:
	adrp	x9, _CAM_REQ_CMP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CAM_REQ_CMP@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.3:
	cbnz	w22, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_cts_print
LBB0_5:
	mov	w20, #0
	cbz	x21, LBB0_12
; %bb.6:
	ldr	w8, [x19]
	str	w8, [x21]
	b	LBB0_12
LBB0_7:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	mov	w20, #1
	b	LBB0_13
LBB0_8:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	b	LBB0_11
LBB0_9:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
Lloh19:
	adrp	x8, _arglist@GOTPAGE
Lloh20:
	ldr	x8, [x8, _arglist@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _CAM_ARG_VERBOSE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CAM_ARG_VERBOSE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh25:
	adrp	x8, _CAM_ESF_ALL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CAM_ESF_ALL@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _CAM_EPF_ALL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CAM_EPF_ALL@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_cam_error_print
LBB0_11:
	mov	w20, #1
LBB0_12:
	mov	x0, x19
	bl	_cam_freeccb
LBB0_13:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_print_cts: error allocating ccb"

	.comm	_XPT_GET_TRAN_SETTINGS,4,2      ; @XPT_GET_TRAN_SETTINGS
	.comm	_CTS_TYPE_CURRENT_SETTINGS,4,2  ; @CTS_TYPE_CURRENT_SETTINGS
	.comm	_CTS_TYPE_USER_SETTINGS,4,2     ; @CTS_TYPE_USER_SETTINGS
l_.str.1:                               ; @.str.1
	.asciz	"error sending XPT_GET_TRAN_SETTINGS CCB"

	.comm	_CAM_STATUS_MASK,4,2            ; @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ; @CAM_REQ_CMP
l_.str.2:                               ; @.str.2
	.asciz	"XPT_GET_TRANS_SETTINGS CCB failed"

	.comm	_arglist,4,2                    ; @arglist
	.comm	_CAM_ARG_VERBOSE,4,2            ; @CAM_ARG_VERBOSE
	.comm	_CAM_ESF_ALL,4,2                ; @CAM_ESF_ALL
	.comm	_CAM_EPF_ALL,4,2                ; @CAM_EPF_ALL
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_get_print_cts
.subsections_via_symbols
