	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atmif_check_carrier            ## -- Begin function atmif_check_carrier
	.p2align	4, 0x90
_atmif_check_carrier:                   ## @atmif_check_carrier
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-28(%rbp), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movq	_mib_netsock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIOCGIFMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	-32(%rbp), %eax
	movq	_IFM_AVALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.3:
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_ATMIF_CARRIER_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ATMIF_CARRIER_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_8
LBB0_4:
	movq	_ATMIF_CARRIER_ON@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	cmpl	%eax, %r14d
	je	LBB0_8
## %bb.7:
	movq	_ATMIF_NOTIFY_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_atmif_send_notification
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mib_netsock,4,2                ## @mib_netsock
	.comm	_SIOCGIFMEDIA,4,2               ## @SIOCGIFMEDIA
	.comm	_ATMIF_CARRIER_UNKNOWN,8,3      ## @ATMIF_CARRIER_UNKNOWN
	.comm	_IFM_AVALID,4,2                 ## @IFM_AVALID
	.comm	_IFM_ACTIVE,4,2                 ## @IFM_ACTIVE
	.comm	_ATMIF_CARRIER_ON,4,2           ## @ATMIF_CARRIER_ON
	.comm	_ATMIF_CARRIER_OFF,4,2          ## @ATMIF_CARRIER_OFF
	.comm	_ATMIF_NOTIFY_CARRIER,4,2       ## @ATMIF_NOTIFY_CARRIER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atmif_check_carrier            ; -- Begin function atmif_check_carrier
	.p2align	2
_atmif_check_carrier:                   ; @atmif_check_carrier
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w20, [x0]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [sp, #12]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	bl	_strcpy
Lloh0:
	adrp	x8, _mib_netsock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mib_netsock@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SIOCGIFMEDIA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOCGIFMEDIA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [sp, #8]
Lloh6:
	adrp	x9, _IFM_AVALID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFM_AVALID@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh9:
	adrp	x9, _IFM_ACTIVE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFM_ACTIVE@GOTPAGEOFF]
Lloh11:
	adrp	x10, _ATMIF_CARRIER_OFF@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ATMIF_CARRIER_OFF@GOTPAGEOFF]
Lloh13:
	adrp	x11, _ATMIF_CARRIER_ON@GOTPAGE
Lloh14:
	ldr	x11, [x11, _ATMIF_CARRIER_ON@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19]
	cmp	w20, w8
	b.eq	LBB0_5
; %bb.3:
Lloh16:
	adrp	x8, _ATMIF_NOTIFY_CARRIER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ATMIF_NOTIFY_CARRIER@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_atmif_send_notification
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _ATMIF_CARRIER_UNKNOWN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATMIF_CARRIER_UNKNOWN@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_mib_netsock,4,2                ; @mib_netsock
	.comm	_SIOCGIFMEDIA,4,2               ; @SIOCGIFMEDIA
	.comm	_ATMIF_CARRIER_UNKNOWN,8,3      ; @ATMIF_CARRIER_UNKNOWN
	.comm	_IFM_AVALID,4,2                 ; @IFM_AVALID
	.comm	_IFM_ACTIVE,4,2                 ; @IFM_ACTIVE
	.comm	_ATMIF_CARRIER_ON,4,2           ; @ATMIF_CARRIER_ON
	.comm	_ATMIF_CARRIER_OFF,4,2          ; @ATMIF_CARRIER_OFF
	.comm	_ATMIF_NOTIFY_CARRIER,4,2       ; @ATMIF_NOTIFY_CARRIER
.subsections_via_symbols
