	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_generic_release            ## -- Begin function dvb_generic_release
	.p2align	4, 0x90
_dvb_generic_release:                   ## @dvb_generic_release
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_O_ACCMODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rsi), %ecx
	movq	_O_RDONLY@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %ecx
	sete	%sil
	incl	4(%rax,%rsi,4)
	incl	(%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_O_ACCMODE,4,2                  ## @O_ACCMODE
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_generic_release            ; -- Begin function dvb_generic_release
	.p2align	2
_dvb_generic_release:                   ; @dvb_generic_release
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
Lloh0:
	adrp	x9, _O_ACCMODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_ACCMODE@GOTPAGEOFF]
	ldr	w10, [x1]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w10
Lloh3:
	adrp	x10, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	mov	w9, #4
	mov	w10, #8
	csel	x9, x10, x9, eq
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ret
LBB0_2:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
.subsections_via_symbols
