	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bdisp_s_ctrl
___bdisp_s_ctrl:                        ## @__bdisp_s_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_V4L2_CTRL_FLAG_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rsi)
	je	LBB0_1
## %bb.7:
	popq	%rbp
	retq
LBB0_1:
	movl	4(%rsi), %edx
	cmpl	$128, %edx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_4
## %bb.3:
	movl	8(%rsi), %ecx
	movl	%ecx, 20(%rdi)
	jmp	LBB0_6
LBB0_5:
	movl	8(%rsi), %ecx
	movl	%ecx, 16(%rdi)
LBB0_6:
	movq	_BDISP_PARAMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rdi)
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ## @V4L2_CTRL_FLAG_INACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown control %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BDISP_PARAMS,4,2               ## @BDISP_PARAMS
	.no_dead_strip	___bdisp_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bdisp_s_ctrl
___bdisp_s_ctrl:                        ; @__bdisp_s_ctrl
	.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	w8, [x1]
Lloh0:
	adrp	x9, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_8
LBB0_2:
	ldr	w2, [x1, #4]
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w2, #129
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x1, #8]
	str	w8, [x0, #20]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x1, #8]
	str	w8, [x0, #16]
LBB0_6:
	mov	w8, #0
Lloh3:
	adrp	x9, _BDISP_PARAMS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BDISP_PARAMS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x0]
	orr	w9, w10, w9
	str	w9, [x0]
	b	LBB0_8
LBB0_7:
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ; @V4L2_CTRL_FLAG_INACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown control %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BDISP_PARAMS,4,2               ; @BDISP_PARAMS
	.no_dead_strip	___bdisp_s_ctrl
.subsections_via_symbols
