	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_set_jcomp
_sd_set_jcomp:                          ## @sd_set_jcomp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_BRIDGE_W9968CF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	movq	(%rsi), %rax
	movq	_QUALITY_MIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_6
## %bb.7:
	movq	_QUALITY_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_9
LBB0_6:
	movq	%rcx, 8(%rdi)
	jmp	LBB0_10
LBB0_9:
	movq	%rax, 8(%rdi)
LBB0_10:
	callq	_sd_get_jcomp
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRIDGE_W9968CF,8,3             ## @BRIDGE_W9968CF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_QUALITY_MIN,8,3                ## @QUALITY_MIN
	.comm	_QUALITY_MAX,8,3                ## @QUALITY_MAX
	.no_dead_strip	_sd_set_jcomp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_set_jcomp
_sd_set_jcomp:                          ; @sd_set_jcomp
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BRIDGE_W9968CF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRIDGE_W9968CF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	cbz	x8, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x1]
Lloh7:
	adrp	x9, _QUALITY_MIN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QUALITY_MIN@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.6:
Lloh10:
	adrp	x9, _QUALITY_MAX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _QUALITY_MAX@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_8
LBB0_7:
	str	x9, [x0, #8]
	b	LBB0_9
LBB0_8:
	str	x8, [x0, #8]
LBB0_9:
	bl	_sd_get_jcomp
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BRIDGE_W9968CF,8,3             ; @BRIDGE_W9968CF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_QUALITY_MIN,8,3                ; @QUALITY_MIN
	.comm	_QUALITY_MAX,8,3                ; @QUALITY_MAX
	.no_dead_strip	_sd_set_jcomp
.subsections_via_symbols
