	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_control_usb_set_mode      ## -- Begin function omap_control_usb_set_mode
	.p2align	4, 0x90
_omap_control_usb_set_mode:             ## @omap_control_usb_set_mode
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_IS_ERR
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_11
## %bb.2:
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	(%rax), %rcx
	movq	_OMAP_CTRL_TYPE_OTGHS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.4:
	cmpl	$130, %r14d
	je	LBB0_8
## %bb.5:
	cmpl	$129, %r14d
	je	LBB0_9
## %bb.6:
	cmpl	$128, %r14d
	jne	LBB0_10
## %bb.7:
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_omap_control_usb_host_mode     ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_8:
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_omap_control_usb_device_mode   ## TAILCALL
LBB0_9:
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_omap_control_usb_set_sessionend ## TAILCALL
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_vdbg                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid control phy device\n"

	.comm	_OMAP_CTRL_TYPE_OTGHS,8,3       ## @OMAP_CTRL_TYPE_OTGHS
L_.str.1:                               ## @.str.1
	.asciz	"invalid omap control usb mode\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_control_usb_set_mode      ; -- Begin function omap_control_usb_set_mode
	.p2align	2
_omap_control_usb_set_mode:             ; @omap_control_usb_set_mode
	.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	x20, x1
	mov	x19, x0
	bl	_IS_ERR
	cbz	x19, LBB0_8
; %bb.1:
	cbnz	x0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_dev_get_drvdata
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _OMAP_CTRL_TYPE_OTGHS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OMAP_CTRL_TYPE_OTGHS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	cmp	w20, #130
	b.eq	LBB0_10
; %bb.5:
	cmp	w20, #129
	b.eq	LBB0_11
; %bb.6:
	cmp	w20, #128
	b.ne	LBB0_12
; %bb.7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_omap_control_usb_host_mode
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_omap_control_usb_device_mode
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_omap_control_usb_set_sessionend
LBB0_12:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_vdbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid control phy device\n"

	.comm	_OMAP_CTRL_TYPE_OTGHS,8,3       ; @OMAP_CTRL_TYPE_OTGHS
l_.str.1:                               ; @.str.1
	.asciz	"invalid omap control usb mode\n"

.subsections_via_symbols
