	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_select_buffer
_ipu_select_buffer:                     ## @ipu_select_buffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movl	%edi, %ecx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rsi
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	_IPU_CHA_BUF0_RDY@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IPU_CHA_BUF1_RDY@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	_ipu_data@GOTPCREL(%rip), %rdi
	popq	%rbp
	jmp	_idmac_write_ipureg             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ipu_data,4,2                   ## @ipu_data
	.comm	_IPU_CHA_BUF0_RDY,4,2           ## @IPU_CHA_BUF0_RDY
	.comm	_IPU_CHA_BUF1_RDY,4,2           ## @IPU_CHA_BUF1_RDY
	.no_dead_strip	_ipu_select_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu_select_buffer
_ipu_select_buffer:                     ; @ipu_select_buffer
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w8, #1
	lsl	x8, x8, x0
Lloh0:
	adrp	x9, _IPU_CHA_BUF0_RDY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPU_CHA_BUF0_RDY@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IPU_CHA_BUF1_RDY@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IPU_CHA_BUF1_RDY@GOTPAGEOFF]
	cmp	w1, #0
	csel	x9, x9, x10, eq
	ldr	w2, [x9]
Lloh4:
	adrp	x0, _ipu_data@GOTPAGE
Lloh5:
	ldr	x0, [x0, _ipu_data@GOTPAGEOFF]
	mov	x1, x8
	b	_idmac_write_ipureg
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ipu_data,4,2                   ; @ipu_data
	.comm	_IPU_CHA_BUF0_RDY,4,2           ; @IPU_CHA_BUF0_RDY
	.comm	_IPU_CHA_BUF1_RDY,4,2           ; @IPU_CHA_BUF1_RDY
	.no_dead_strip	_ipu_select_buffer
.subsections_via_symbols
