	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_cf_set_socket
_omap_cf_set_socket:                    ## @omap_cf_set_socket
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$33, %eax
	jne	LBB0_2
LBB0_3:
	movq	_CF_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_omap_readw
	movq	_SS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	4(%rbx), %edi
	je	LBB0_5
## %bb.4:
	movq	_CF_CONTROL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_5:
	movl	(%r14), %esi
	callq	_omap_writew
	movq	_driver_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %ecx
	movl	(%rbx), %edx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %r9d
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CF_CONTROL,4,2                 ## @CF_CONTROL
	.comm	_SS_RESET,4,2                   ## @SS_RESET
	.comm	_CF_CONTROL_RESET,4,2           ## @CF_CONTROL_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Vcc %d, io_irq %d, flags %04x csc %04x\n"

	.comm	_driver_name,4,2                ## @driver_name
	.no_dead_strip	_omap_cf_set_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_cf_set_socket
_omap_cf_set_socket:                    ; @omap_cf_set_socket
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_2
; %bb.1:
	cmp	w8, #33
	b.ne	LBB0_3
LBB0_2:
Lloh0:
	adrp	x20, _CF_CONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CF_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_omap_readw
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _SS_RESET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SS_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _CF_CONTROL_RESET@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CF_CONTROL_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w0, wzr, w10, eq
	ldr	w1, [x20]
	bl	_omap_writew
Lloh8:
	adrp	x8, _driver_name@GOTPAGE
Lloh9:
	ldr	x8, [x8, _driver_name@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	w2, w4, [x19]
	ldp	w5, w3, [x19, #8]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CF_CONTROL,4,2                 ; @CF_CONTROL
	.comm	_SS_RESET,4,2                   ; @SS_RESET
	.comm	_CF_CONTROL_RESET,4,2           ; @CF_CONTROL_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Vcc %d, io_irq %d, flags %04x csc %04x\n"

	.comm	_driver_name,4,2                ; @driver_name
	.no_dead_strip	_omap_cf_set_socket
.subsections_via_symbols
