	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_btcoex_set_mode          ## -- Begin function brcmf_btcoex_set_mode
	.p2align	4, 0x90
_brcmf_btcoex_set_mode:                 ## @brcmf_btcoex_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_wiphy_to_cfg
	movq	8(%rax), %r14
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_brcmf_get_ifp
	cmpl	$128, %r12d
	je	LBB0_6
## %bb.1:
	cmpl	$129, %r12d
	jne	LBB0_9
## %bb.2:
	movq	%rax, %r13
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movl	8(%r14), %eax
	movq	_BRCMF_BT_DHCP_IDLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	callq	_brcmf_btcoex_is_sco_active
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_msecs_to_jiffies
	movl	%eax, 12(%r14)
	movq	%r15, (%r14)
	movq	%r14, %rdi
	callq	_brcmf_btcoex_dhcp_start
	jmp	LBB0_10
LBB0_6:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_brcmf_dbg
	movl	8(%r14), %eax
	movq	_BRCMF_BT_DHCP_IDLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.7:
	cmpq	%r15, (%r14)
	jne	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_brcmf_btcoex_dhcp_end
	jmp	LBB0_10
LBB0_9:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_brcmf_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DHCP session starts\n"

	.comm	_BRCMF_BT_DHCP_IDLE,4,2         ## @BRCMF_BT_DHCP_IDLE
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"DHCP session ends\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown mode, ignored\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_btcoex_set_mode          ; -- Begin function brcmf_btcoex_set_mode
	.p2align	2
_brcmf_btcoex_set_mode:                 ; @brcmf_btcoex_set_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_wiphy_to_cfg
	ldr	x20, [x0, #8]
	ldr	w0, [x0]
	mov	w1, #0
	bl	_brcmf_get_ifp
	cmp	w23, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w23, #129
	b.ne	LBB0_8
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x8, _INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	w8, [x20, #8]
Lloh5:
	adrp	x9, _BRCMF_BT_DHCP_IDLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BRCMF_BT_DHCP_IDLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.3:
	mov	x0, x22
	bl	_brcmf_btcoex_is_sco_active
	cbz	w0, LBB0_10
; %bb.4:
	mov	x0, x21
	bl	_msecs_to_jiffies
	str	w0, [x20, #12]
	str	x19, [x20]
	mov	x0, x20
	bl	_brcmf_btcoex_dhcp_start
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	ldr	w8, [x20, #8]
Lloh13:
	adrp	x9, _BRCMF_BT_DHCP_IDLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BRCMF_BT_DHCP_IDLE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x20]
	cmp	x8, x19
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_brcmf_btcoex_dhcp_end
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh21:
	adrp	x8, _EBUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DHCP session starts\n"

	.comm	_BRCMF_BT_DHCP_IDLE,4,2         ; @BRCMF_BT_DHCP_IDLE
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"DHCP session ends\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown mode, ignored\n"

.subsections_via_symbols
